mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-27 09:31:20 +01:00
Cleanup
This commit is contained in:
parent
037e53f385
commit
ae55ee82a7
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 New Vector Ltd
|
* Copyright (c) 2021 The Matrix.org Foundation C.I.C.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -111,7 +111,7 @@ class RoomPermissionsViewModel @AssistedInject constructor(@Assisted initialStat
|
|||||||
postLoading(true)
|
postLoading(true)
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
try {
|
try {
|
||||||
val newPowerLevelsContent = when(action.editablePermission) {
|
val newPowerLevelsContent = when (action.editablePermission) {
|
||||||
is EditablePermission.EventTypeEditablePermission -> currentPowerLevel.copy(
|
is EditablePermission.EventTypeEditablePermission -> currentPowerLevel.copy(
|
||||||
events = currentPowerLevel.events.toMutableMap().apply {
|
events = currentPowerLevel.events.toMutableMap().apply {
|
||||||
put(action.editablePermission.eventType, action.powerLevel)
|
put(action.editablePermission.eventType, action.powerLevel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user