Relax constraint on filters
Before we checked filters are exactly the same as the chats. If there's any state mismatch, this will result in not fetching messages from the mailserver. This might not be necessarily what we want, we probably want to be resilient to this case. Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
6f865bf337
commit
80eeb8765a
|
@ -2,6 +2,7 @@
|
|||
status-im.transport.db
|
||||
(:require [cljs.spec.alpha :as spec]
|
||||
[clojure.string :as s]
|
||||
[clojure.set :as sets]
|
||||
status-im.contact.db
|
||||
[status-im.utils.config :as config]
|
||||
[status-im.utils.clocks :as utils.clocks]
|
||||
|
@ -132,4 +133,4 @@
|
|||
chat-id)
|
||||
topic))
|
||||
(get db :transport/chats))))]
|
||||
(= chats filters)))
|
||||
(empty? (sets/difference chats filters))))
|
||||
|
|
Loading…
Reference in New Issue