mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-12 09:44:13 +00:00
fix realm error at group leaving
Former-commit-id: 18452c9bd94f70e37f7b5056f50c201a4a2f5757
This commit is contained in:
parent
e3ec4757b7
commit
339ceae33e
@ -96,8 +96,7 @@
|
||||
(defn remove-contacts
|
||||
[chat-id identities]
|
||||
(let [contacts (get-contacts chat-id)]
|
||||
(realm/write @realm/account-realm
|
||||
#(delete-contacts identities contacts))))
|
||||
(delete-contacts identities contacts)))
|
||||
|
||||
(defn save-property
|
||||
[chat-id property-name value]
|
||||
|
@ -49,6 +49,5 @@
|
||||
|
||||
(defn delete-by-chat-id
|
||||
[chat-id]
|
||||
(realm/write @realm/account-realm
|
||||
#(realm/delete @realm/account-realm
|
||||
(get-by-chat-id chat-id))))
|
||||
(realm/delete @realm/account-realm
|
||||
(get-by-chat-id chat-id)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user