Merge branch 'td/singleShotSyncBeforeStaleChecker' into 'main'

chore: oneShotSync before staleCallChecker

Closes famedly/company/product-management#658

See merge request famedly/company/frontend/famedlysdk!1284
This commit is contained in:
Nicolas Werner 2023-05-03 06:35:56 +00:00
commit a250384eca
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ extension GroupCallUtils on Room {
Future<void> singleShotStaleCallCheckerOnRoom() async { Future<void> singleShotStaleCallCheckerOnRoom() async {
Logs().d('checking for stale group calls in room $id'); Logs().d('checking for stale group calls in room $id');
// make sure we have all the to-device messages we are supposed to have
await client.oneShotSync();
final copyGroupCallIds = final copyGroupCallIds =
states.tryGetMap<String, Event>(EventTypes.GroupCallPrefix); states.tryGetMap<String, Event>(EventTypes.GroupCallPrefix);
if (copyGroupCallIds == null) return; if (copyGroupCallIds == null) return;