mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Cleanup proxy errors
- proxy errors have been getting repetitive and not particularly useful - differentiate between sdk and client errors and keep what provides value - add error logs everywhere a failure occurs
This commit is contained in:
committed by
Stefan Ceriu
parent
3418d24557
commit
c85c1593ee
@@ -110,12 +110,9 @@ class RoomMembersListScreenViewModel: RoomMembersListScreenViewModelType, RoomMe
|
||||
bannedMembers: roomMembersDetails.bannedMembers,
|
||||
bindings: state.bindings)
|
||||
|
||||
async let canInviteUsers = roomProxy.canUserInvite(userID: roomProxy.ownUserID)
|
||||
async let canKickUsers = roomProxy.canUserKick(userID: roomProxy.ownUserID)
|
||||
async let canBanUsers = roomProxy.canUserBan(userID: roomProxy.ownUserID)
|
||||
self.state.canInviteUsers = await canInviteUsers == .success(true)
|
||||
self.state.canKickUsers = await canKickUsers == .success(true)
|
||||
self.state.canBanUsers = await canBanUsers == .success(true)
|
||||
self.state.canInviteUsers = await (try? roomProxy.canUserInvite(userID: roomProxy.ownUserID).get()) == true
|
||||
self.state.canKickUsers = await (try? roomProxy.canUserKick(userID: roomProxy.ownUserID).get()) == true
|
||||
self.state.canBanUsers = await (try? roomProxy.canUserBan(userID: roomProxy.ownUserID).get()) == true
|
||||
|
||||
hideLoader()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user