Skip to content

Commit

Permalink
fixup various: use debugLog rather than print
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Oct 17, 2023
1 parent c06c886 commit 0623524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class NotificationService {

void _onNotificationOpened(NotificationResponse response) async {
final data = MessageFcmMessage.fromJson(jsonDecode(response.payload!));
print('opened notif: message ${data.zulipMessageId}, content ${data.content}');
assert(debugLog('opened notif: message ${data.zulipMessageId}, content ${data.content}'));
final navigator = navigatorKey.currentState;
if (navigator == null) return; // TODO(log) handle

Expand All @@ -109,7 +109,7 @@ class NotificationService {
DmNarrow(allRecipientIds: allRecipientIds, selfUserId: account.userId),
};

print(' account: $account, narrow: $narrow');
assert(debugLog(' account: $account, narrow: $narrow'));
// TODO(nav): Better interact with existing nav stack on notif open
navigator.push(MaterialPageRoute(builder: (context) =>
PerAccountStoreWidget(accountId: account.id,
Expand Down

0 comments on commit 0623524

Please sign in to comment.