mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
InviteRecentTableViewCell: Use "accept" as right button only for DM invite and restore "preview" action for room invite.
This commit is contained in:
@@ -34,12 +34,17 @@ extension RecentsViewController {
|
||||
self.recentsTableView.reloadData()
|
||||
}
|
||||
|
||||
@objc func canShowRoomPreview(for roomId: String) -> Bool {
|
||||
@objc func canShowRoomPreview(for room: MXRoom) -> Bool {
|
||||
// Do not show room preview if room is not direct
|
||||
guard room.isDirect else {
|
||||
return false
|
||||
}
|
||||
|
||||
guard let session = self.mainSession else {
|
||||
return false
|
||||
}
|
||||
|
||||
let changeMembershipState = session.getRoomMembershipChangeState(withRoomId: roomId)
|
||||
let changeMembershipState = session.getRoomMembershipChangeState(withRoomId: room.roomId)
|
||||
|
||||
// NOTE: For the moment do not offer the possibility to show room preview when invitation action is in progress
|
||||
|
||||
|
||||
Reference in New Issue
Block a user