From 099bcf8a170429f07faa5c7666771839811ed874 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 7 Dec 2021 12:25:16 +0200 Subject: [PATCH] Allow sending messages offline (non-datasync messages) --- src/status_im/transport/message/core.cljs | 4 +++- status-go-version.json | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/status_im/transport/message/core.cljs b/src/status_im/transport/message/core.cljs index 0896dfea40..221c9d35b6 100644 --- a/src/status_im/transport/message/core.cljs +++ b/src/status_im/transport/message/core.cljs @@ -255,7 +255,9 @@ (fx/defn update-envelopes-status [{:keys [db] :as cofx} message-id status] - (apply fx/merge cofx (map #(update-envelope-status % status) message-id))) + (when (or (not= status :not-sent) + (= :online (:network db))) + (apply fx/merge cofx (map #(update-envelope-status % status) message-id)))) (fx/defn set-message-envelope-hash "message-type is used for tracking" diff --git a/status-go-version.json b/status-go-version.json index 4fe1abdf2a..29958d5dbb 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -3,7 +3,7 @@ "_comment": "Instead use: scripts/update-status-go.sh ", "owner": "status-im", "repo": "status-go", - "version": "v0.92.0", - "commit-sha1": "83c384989967131afcb47d7f4df673725adf6a71", - "src-sha256": "0djagpalbpi4zi54raa28m8vnp0gajpm8fb76wm4mc5rz8542an3" + "version": "v0.92.1", + "commit-sha1": "3564630c3317f564e4aa10a461448fe2b5a7c54c", + "src-sha256": "0rrrydwr7yc9nf9rfpl1vx8ngpkw00q1zdfjw0by9xi49l8lkvf3" }