fix timeline non contacts

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-11-09 18:23:41 +01:00
parent e5ada29ed8
commit b3a3a753d2
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 5 additions and 2 deletions

View File

@ -271,7 +271,7 @@
(transport.filters/load-chat chat-id) (transport.filters/load-chat chat-id)
(navigate-to-chat chat-id)))) (navigate-to-chat chat-id))))
(def timeline-chat-id "@timeline") (def timeline-chat-id "@timeline70bd746ddcc12beb96b2c9d572d0784ab137ffc774f5383e50585a932080b57cca0484b259e61cecbaa33a4c98a300a")
(defn profile-chat-topic [public-key] (defn profile-chat-topic [public-key]
(str "@" public-key)) (str "@" public-key))

View File

@ -64,7 +64,10 @@
(assoc-in [public-key :nickname] (:nickname contact)))) (assoc-in [public-key :nickname] (:nickname contact))))
% %
contacts)) contacts))
:dispatch-n (map (fn [{:keys [public-key]}] [:start-profile-chat public-key]) contacts)}) :dispatch-n (map (fn [{:keys [public-key] :as contact}]
(when (contact.db/added? contact)
[:start-profile-chat public-key]))
contacts)})
(fx/defn upsert-contact (fx/defn upsert-contact
[{:keys [db] :as cofx} [{:keys [db] :as cofx}