mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 04:15:12 +00:00
Replace 'leave room' text with 'leave conversation' for DMs (#2231)
* Replace 'leave room' text with 'leave conversation' for DMs * Add `isDm` property to both `RoomSummary` and `RoomListRoomSummary` * Remove redundant `leave_conversation_alert_subtitle_*` texts * Fix maestro flow --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
committed by
GitHub
parent
d7dcd7aa34
commit
27f55c0bc4
+1
-2
@@ -183,9 +183,8 @@ class MessageComposerPresenter @Inject constructor(
|
||||
val currentUserId = currentSessionIdHolder.current
|
||||
|
||||
suspend fun canSendRoomMention(): Boolean {
|
||||
val roomIsDm = room.isDirect && room.isOneToOne
|
||||
val userCanSendAtRoom = room.canUserTriggerRoomNotification(currentUserId).getOrDefault(false)
|
||||
return !roomIsDm && userCanSendAtRoom
|
||||
return !room.isDm && userCanSendAtRoom
|
||||
}
|
||||
|
||||
// This will trigger a search immediately when `@` is typed
|
||||
|
||||
Reference in New Issue
Block a user