Skip to content

Commit 5db457d

Browse files
committed
store [nfc]: Avoid unawaited future when calling registerNotificationToken
The called method returns a not so useful future that is used for testing. See also: zulip#325 (comment) Signed-off-by: Zixuan James Li <[email protected]>
1 parent 4879852 commit 5db457d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/store.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ class UpdateMachine {
723723
updateMachine.poll();
724724
// TODO do registerNotificationToken before registerQueue:
725725
// https://github.com/zulip/zulip-flutter/pull/325#discussion_r1365982807
726-
updateMachine.registerNotificationToken();
726+
unawaited(updateMachine.registerNotificationToken());
727727
return updateMachine;
728728
}
729729

0 commit comments

Comments
 (0)