nextcloud / talk-ios

📱😀 Video & audio calls through Nextcloud on iOS
GNU General Public License v3.0
148 stars 91 forks source link

Don't query the conversation list twice when force-refreshing #1690

Closed SystemKeeper closed 3 months ago

SystemKeeper commented 3 months ago

When we do a force-refresh (that is manually pulling down the conversation list until a refresh is done) we always check for new federated invitations. When we update our timestamp of the last successful invitation update (updateLastFederationInvitationUpdateForAccountId) we also notify about NCDatabaseManagerPendingFederationInvitationsDidChange, which in turn will force reload the conversation list (again).

Before:

Bildschirmfoto 2024-06-26 um 22 10 40

After:

Bildschirmfoto 2024-06-26 um 22 11 20

Found while verifying https://github.com/nextcloud/talk-ios/pull/1689