mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 21:52:28 +00:00
android, desktop: chats context enhancements
This commit is contained in:
1 parent
95de471754
commit
acba0b4a7d
1 file changed
+2
-2
+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