mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-07 21:35:50 +00:00
android, desktop: chats context enhancements
This commit is contained in:
@@ -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