Skip to content

Commit

Permalink
action_sheet [nfc]: Mark unawaited future from markNarrowAsUnreadFrom…
Browse files Browse the repository at this point in the history
…Message

Signed-off-by: Zixuan James Li <[email protected]>
  • Loading branch information
PIG208 committed Sep 25, 2024
1 parent d1e2d53 commit fff083a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/widgets/action_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
Expand Down Expand Up @@ -303,7 +305,7 @@ class MarkAsUnreadButton extends MessageActionSheetMenuItemButton {

@override void onPressed(BuildContext context) async {
Navigator.of(context).pop();
markNarrowAsUnreadFromMessage(messageListContext, message, narrow);
unawaited(markNarrowAsUnreadFromMessage(messageListContext, message, narrow));
}
}

Expand Down

0 comments on commit fff083a

Please sign in to comment.