mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Bug Fix - Repeatedly tapping on tab jumps through rooms in wrong order
#1306
This commit is contained in:
@@ -725,10 +725,22 @@
|
||||
|
||||
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
|
||||
{
|
||||
if (item.tag == TABBAR_ROOMS_INDEX && self.selectedIndex == TABBAR_ROOMS_INDEX)
|
||||
// Detect multi-tap on the current selected tab.
|
||||
if (item.tag == self.selectedIndex)
|
||||
{
|
||||
// Scroll to the next room with missed notifications.
|
||||
[self.roomsViewController scrollToNextRoomWithMissedNotifications];
|
||||
if (item.tag == TABBAR_ROOMS_INDEX)
|
||||
{
|
||||
[self.roomsViewController scrollToNextRoomWithMissedNotifications];
|
||||
}
|
||||
else if (item.tag == TABBAR_PEOPLE_INDEX)
|
||||
{
|
||||
[self.peopleViewController scrollToNextRoomWithMissedNotifications];
|
||||
}
|
||||
else if (item.tag == TABBAR_FAVOURITES_INDEX)
|
||||
{
|
||||
[self.favouritesViewController scrollToNextRoomWithMissedNotifications];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user