knock : use PendingRoom instead of InvitedRoom
This commit is contained in:
parent
96b24c5299
commit
73a46dcfc7
9 changed files with 46 additions and 43 deletions
|
|
@ -94,8 +94,8 @@ class AcceptDeclineInvitePresenter @Inject constructor(
|
|||
|
||||
private fun CoroutineScope.declineInvite(roomId: RoomId, declinedAction: MutableState<AsyncAction<RoomId>>) = launch {
|
||||
suspend {
|
||||
client.getInvitedRoom(roomId)?.use {
|
||||
it.declineInvite().getOrThrow()
|
||||
client.getPendingRoom(roomId)?.use {
|
||||
it.leave().getOrThrow()
|
||||
notificationCleaner.clearMembershipNotificationForRoom(client.sessionId, roomId)
|
||||
}
|
||||
roomId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue