mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
Cleanup
This commit is contained in:
parent
037e53f385
commit
ae55ee82a7
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -111,7 +111,7 @@ class RoomPermissionsViewModel @AssistedInject constructor(@Assisted initialStat
|
|||
postLoading(true)
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
val newPowerLevelsContent = when(action.editablePermission) {
|
||||
val newPowerLevelsContent = when (action.editablePermission) {
|
||||
is EditablePermission.EventTypeEditablePermission -> currentPowerLevel.copy(
|
||||
events = currentPowerLevel.events.toMutableMap().apply {
|
||||
put(action.editablePermission.eventType, action.powerLevel)
|
||||
|
|
Loading…
Reference in a new issue