Bug Fix: Messages - Wait for the end of action before hiding swipe menu #52

This commit is contained in:
giomfo
2016-03-18 17:56:59 +01:00
parent 7b58974da0
commit 701ab26d14
5 changed files with 412 additions and 155 deletions
@@ -458,7 +458,7 @@
if ([updatedItemsDict objectForKey:@"ROOM_SECTION_MUTE_NOTIFICATIONS"])
{
[mxRoom toggleRoomNotifications:roomNotifSwitch.on];
[mxRoom setMute:roomNotifSwitch.on completion:nil];
[updatedItemsDict removeObjectForKey:@"ROOM_SECTION_MUTE_NOTIFICATIONS"];
[self onSave:nil];
}
@@ -567,7 +567,7 @@
}
else
{
roomNotifSwitch.on = mxRoom.areRoomNotificationsMuted;
roomNotifSwitch.on = mxRoom.isMute;
}
cell = roomNotifCell;
@@ -770,9 +770,9 @@
{
NSMutableDictionary* dict = [self getUpdatedItemsDict];
if (roomNotifSwitch.on == mxRoom.areRoomNotificationsMuted)
if (roomNotifSwitch.on == mxRoom.isMute)
{
[dict removeObjectForKey:@"ROOM_SECTION_MUTE_NOTIFICATIONS"];
[dict removeObjectForKey:@"ROOM_SECTION_MUTE_NOTIFICATIONS"];
}
else
{