        :else
        (identicon/identicon chat-id)))))
 
-(reg-sub
+(re-frame/reg-sub
  :contacts/contact-by-address
  :<- [:contacts/contacts]
  (fn [contacts [_ address]]
    (contact.db/find-contact-by-address contacts address)))
 
-(reg-sub
+(re-frame/reg-sub
  :contacts/contacts-by-address
  :<- [:contacts/contacts]
  (fn [contacts]

;;EXTENSIONS ============================================================================================================
;;TODO not optimized yet

(reg-sub
 :extensions/identity
 (fn [_ [_ _ {:keys [value]}]]
   value))

        (sort-by #(-> % second :timestamp) >
                 (into {} results))))))

(re-frame/reg-sub
 :search/filtered-chats
 :<- [:chats/active-chats]
 :<- [:search/filter]
