Fix block contact db error
bddae03ab2
broke adding a user to contacts, this fixes by serializing the contact
before saving it.
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
c081f7f49c
commit
9040f0345a
|
@ -71,7 +71,7 @@
|
||||||
"Returns tx function for deleting user messages"
|
"Returns tx function for deleting user messages"
|
||||||
[{:keys [public-key] :as contact} messages-ids]
|
[{:keys [public-key] :as contact} messages-ids]
|
||||||
(fn [realm]
|
(fn [realm]
|
||||||
(core/create realm :contact contact true)
|
(core/create realm :contact (serialize-contact contact) true)
|
||||||
(when-let [user-messages
|
(when-let [user-messages
|
||||||
(get-messages-by-messages-ids messages-ids)]
|
(get-messages-by-messages-ids messages-ids)]
|
||||||
(core/delete realm user-messages))
|
(core/delete realm user-messages))
|
||||||
|
|
Loading…
Reference in New Issue