mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Apply the logic from the previous commit and the JoinRoomProxy to the KnockedRoomProxy
This commit is contained in:
committed by
Stefan Ceriu
parent
ae42540ec0
commit
54a4656469
@@ -915,12 +915,16 @@ class ClientProxy: ClientProxyProtocol {
|
||||
|
||||
return try await .invited(InvitedRoomProxy(room: room))
|
||||
case .knocked:
|
||||
if appSettings.knockingEnabled {
|
||||
return try await .knocked(KnockedRoomProxy(roomListItem: roomListItem,
|
||||
roomPreview: roomListItem.previewRoom(via: []),
|
||||
ownUserID: userID))
|
||||
guard appSettings.knockingEnabled else {
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
|
||||
guard let room = try client.getRoom(roomId: roomID) else {
|
||||
MXLog.error("Could not find room with ID: \(roomID)")
|
||||
return nil
|
||||
}
|
||||
|
||||
return try await .knocked(KnockedRoomProxy(room: room))
|
||||
case .joined:
|
||||
guard let room = try client.getRoom(roomId: roomID) else {
|
||||
MXLog.error("Could not find room with ID: \(roomID)")
|
||||
|
||||
Reference in New Issue
Block a user