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:
Andrea Maria Piana 2019-02-19 17:44:53 +01:00
parent c081f7f49c
commit 9040f0345a
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
"Returns tx function for deleting user messages"
[{:keys [public-key] :as contact} messages-ids]
(fn [realm]
(core/create realm :contact contact true)
(core/create realm :contact (serialize-contact contact) true)
(when-let [user-messages
(get-messages-by-messages-ids messages-ids)]
(core/delete realm user-messages))