Fix formatting issues.

This commit is contained in:
Benoit Marty 2024-06-05 15:11:51 +02:00
parent afe5c33f33
commit acefbbc7d8
3 changed files with 4 additions and 4 deletions

View file

@ -153,8 +153,8 @@ class NotificationBroadcastReceiverHandler @Inject constructor(
senderId = sessionId,
noisy = false,
timestamp = systemClock.epochMillis(),
senderDisambiguatedDisplayName = room.getUpdatedMember(sessionId)
.getOrNull()?.disambiguatedDisplayName
senderDisambiguatedDisplayName = room.getUpdatedMember(sessionId).getOrNull()
?.disambiguatedDisplayName
?: stringProvider.getString(R.string.notification_sender_me),
body = message,
imageUriString = null,

View file

@ -30,6 +30,7 @@ interface ReplyMessageExtractor {
class AndroidReplyMessageExtractor @Inject constructor() : ReplyMessageExtractor {
override fun getReplyMessage(intent: Intent): String? {
return RemoteInput.getResultsFromIntent(intent)
?.getCharSequence(NotificationBroadcastReceiver.KEY_TEXT_REPLY)?.toString()
?.getCharSequence(NotificationBroadcastReceiver.KEY_TEXT_REPLY)
?.toString()
}
}