Add a message in the notification for the caption. Fixes #2602
This commit is contained in:
parent
47d7eac1ea
commit
cd481d3ca9
1 changed files with 11 additions and 0 deletions
|
|
@ -424,6 +424,17 @@ class DefaultNotificationCreator @Inject constructor(
|
|||
message.extras.putString(MESSAGE_EVENT_ID, event.eventId.value)
|
||||
}
|
||||
addMessage(message)
|
||||
|
||||
// Add additional message for captions
|
||||
if (event.imageUri != null && event.body != null) {
|
||||
addMessage(
|
||||
MessagingStyle.Message(
|
||||
event.body,
|
||||
event.timestamp,
|
||||
senderPerson,
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue