android, desktop: chats context enhancements

This commit is contained in:
Avently committed 2024-08-01 17:09:26 +09:00
1 parent 95de471754
commit acba0b4a7d
1 file changed
+2 -2
@@ -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 {