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:
commit
a250384eca
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue