Fix formatting issues.

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

View file

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

View file

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

View file

@ -29,7 +29,6 @@ class FakeNotificationDrawerManager(
private val clearMembershipNotificationForSessionLambda: (SessionId) -> Unit = { lambdaError() }, private val clearMembershipNotificationForSessionLambda: (SessionId) -> Unit = { lambdaError() },
private val clearMembershipNotificationForRoomLambda: (SessionId, RoomId) -> Unit = { _, _ -> lambdaError() } private val clearMembershipNotificationForRoomLambda: (SessionId, RoomId) -> Unit = { _, _ -> lambdaError() }
) : NotificationDrawerManager { ) : NotificationDrawerManager {
override fun clearAllMessagesEvents(sessionId: SessionId) { override fun clearAllMessagesEvents(sessionId: SessionId) {
clearAllMessagesEventsLambda(sessionId) clearAllMessagesEventsLambda(sessionId)
} }