diff --git a/Riot/Modules/Room/Settings/RoomSettingsViewController.m b/Riot/Modules/Room/Settings/RoomSettingsViewController.m index 0bdc6c2cc..e096ee2e9 100644 --- a/Riot/Modules/Room/Settings/RoomSettingsViewController.m +++ b/Riot/Modules/Room/Settings/RoomSettingsViewController.m @@ -1423,7 +1423,8 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti if (shouldRemoveRoomAvatarImage) { shouldRemoveRoomAvatarImage = false; [updatedItemsDict removeObjectForKey:kRoomSettingsAvatarKey]; - pendingOperation = [mxRoom setAvatar:@"" success:^{ + // delete room avatar + pendingOperation = [mxRoom sendStateEventOfType:kMXEventTypeStringRoomAvatar content:@{} stateKey:@"" success:^(NSString *eventId) { if (weakSelf) { typeof(self) self = weakSelf;