mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-24 21:45:38 +00:00
android, desktop: chats context enhancements
This commit is contained in:
+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 {
|
||||
|
||||
Reference in New Issue
Block a user