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:
Andrea Maria Piana 2019-02-07 07:50:48 +01:00
parent 6f865bf337
commit 80eeb8765a
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 1 deletions

View File

@ -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))))