MESSENGER-4882 refactor delete avatar

This commit is contained in:
JanNiklas Grabowski
2023-06-30 16:28:35 +02:00
parent ebdd064e66
commit 232f526dd8
@@ -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;