Add a message in the notification for the caption. Fixes #2602
This commit is contained in:
committed by
Benoit Marty
parent
47d7eac1ea
commit
cd481d3ca9
+11
@@ -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,
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user