Add a message in the notification for the caption. Fixes #2602
This commit is contained in:
parent
dd8de20147
commit
08b60a4d64
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)
|
message.extras.putString(MESSAGE_EVENT_ID, event.eventId.value)
|
||||||
}
|
}
|
||||||
addMessage(message)
|
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