Recents: Recognise server notices room(s) and put them in the dedicated section

https://github.com/vector-im/riot-ios/issues/1937
This commit is contained in:
manuroe
2018-08-23 16:50:14 +02:00
parent e9379efafd
commit 3fb5cfa619
4 changed files with 74 additions and 9 deletions
@@ -89,7 +89,7 @@
if (_hideRecents)
{
self.invitesSection = self.favoritesSection = self.peopleSection = self.conversationSection = self.lowPrioritySection = -1;
self.invitesSection = self.favoritesSection = self.peopleSection = self.conversationSection = self.lowPrioritySection = self.serverNoticeSection = -1;
sectionsCount = sectionsOffset;
}
else
@@ -114,6 +114,10 @@
{
self.lowPrioritySection += sectionsOffset;
}
if (self.serverNoticeSection != -1)
{
self.serverNoticeSection += sectionsOffset;
}
sectionsCount += sectionsOffset;
}
}