Skip to content

Commit

Permalink
store [nfc]: Mark unawaited future from registerNotificationToken
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
PIG208 committed Oct 7, 2024
1 parent 92e4696 commit 7bf82c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ class UpdateMachine {
updateMachine.poll();
// TODO do registerNotificationToken before registerQueue:
// https://github.com/zulip/zulip-flutter/pull/325#discussion_r1365982807
updateMachine.registerNotificationToken();
unawaited(updateMachine.registerNotificationToken());
return updateMachine;
}

Expand Down

0 comments on commit 7bf82c1

Please sign in to comment.