android, desktop: chats context enhancements

This commit is contained in:
Avently
2024-08-01 17:09:26 +09:00
parent 95de471754
commit acba0b4a7d

View File

@@ -194,8 +194,8 @@ object ChatModel {
}
}
suspend fun <T> withChats(action: suspend ChatsContext.() -> T): T = updatingChatsMutex.withLock {
chatsContext.action()
suspend fun <T> withChats(action: suspend ChatsContext.(ChatsContext) -> T): T = updatingChatsMutex.withLock {
chatsContext.action(chatsContext)
}
class ChatsContext {