Merge branch 'fix/fix_crash_for_userid_missing_when_opening_a_message_from_notifications' into 'develop'

Make sure we always have a userId to pass to the intent.

See merge request android/mail/proton-mail-android!1227
This commit is contained in:
Zorica Stojchevska 2023-01-11 15:20:52 +00:00
commit 8741eac50a
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class NotificationServer @Inject constructor(
) {
// Create content Intent for open SwitchUserAndOpenMessageDetailsActivity
val contentIntent = SwitchUserAndOpenMessageDetailsActivity.Input(
userId = user.id,
userId = userId,
messageId = messageId,
locationType = message?.location?.let(MessageLocationType::fromInt) ?: MessageLocationType.INVALID,
messageSubject = notificationBody