Allow sending messages offline (non-datasync messages)

This commit is contained in:
Roman Volosovskyi 2021-12-07 12:25:16 +02:00
parent 4504f07a2a
commit 099bcf8a17
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"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"
}