The Status module that consumes go-ethereum https://status.im
Go to file
Pascal Precht 3f987cc565 fix(messenger): don't remove inactive chats when syncing
This commit ensures we're relying on `chat.DeletedAtClockValue` instead
of `chat.Active` to know whether or not we need to remove the chat from
paired devices.

Because we were relying on `Active != true`, we ended up with a serious
but that would result in deactivating all chats on paired devices.

The reason the chats would disappear on paired devices is because, when
setting up a new device by importing a seedphrase, chances are this
device will receive `HandleBackUp` signals (which original from other
devices with the same account that backed up contacts etc).

When backups are handled, we create chats for every contact that's part
of the backup signal. Those chats are set to `Active = false` because
the signal handling shouldn't cause those chats to show up in the UI.

However, because those are set to `Active = false`, the next time the
user tries to sync from this devices, all those chats are considered as
"removed", hence sending "chat removed" signals when syncing (which then
causes those chats to disappear on all paired devices.

We need to rely on `DeletedAtClockValue` to know whether a chat was
indeed removed and only then emit such a signal.
2022-08-25 11:51:01 +02:00
.dependabot Patch/dependabot protocol (#1980) 2020-05-19 00:14:02 +01:00
.github fix documentation url in the checklist (#2770) 2022-07-22 22:12:29 +05:30
.vscode Add go.formatFlags to VS Code settings 2020-01-16 13:18:36 +01:00
_assets fix: apt -> apt-get (#2775) 2022-08-03 11:26:31 +02:00
_docs rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
_examples go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
account added function which creates an account from the provided mnemonic 2022-08-24 18:01:44 +02:00
api Wallet sync for generated accounts 2022-07-06 19:24:43 +03:00
appdatabase [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
appmetrics rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
build/bin add .gitkeep to build/bin so it always exists 2019-03-05 14:22:00 +01:00
cmd rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
common Move services to status-node 2021-07-20 10:57:38 +02:00
config chore: add status.prod fleet (#2583) 2022-03-11 15:48:51 -05:00
connection Address linter issues 2022-03-28 13:14:12 +01:00
contracts feat: obtain ENSUsername address from registry (#2792) 2022-08-23 08:29:30 -04:00
db Address linter issues 2022-03-28 13:14:12 +01:00
discovery feat: obtain external address for rendezvous (#2333) 2021-09-06 09:46:35 -04:00
eth-node Added payload marshal and unmarshal to/from protobuf 2022-08-22 13:27:59 +01:00
exportlogs Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
extkeys Upgrade geth 2021-07-20 10:57:38 +02:00
images Moved protobuf marshalling closer to the structs that get marshalled 2022-08-22 13:27:59 +01:00
ipfs Stop download of stickers on canceling context (#2699) 2022-06-02 22:03:16 +05:30
logutils Removed unnecessary dependency from logutil package 2021-08-19 11:35:40 +02:00
mailserver [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
metrics metrics: fix p2p_peers_count metrics labels 2021-08-24 11:07:39 +02:00
mobile added function which creates an account from the provided mnemonic 2022-08-24 18:01:44 +02:00
multiaccounts [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
node feat: obtain ENSUsername address from registry (#2792) 2022-08-23 08:29:30 -04:00
nodecfg feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
notifier Notifier package to interact with gorush notifications (#910) 2018-05-08 16:30:03 +02:00
params feat: log raw messages to csv for debugging (only if explicitly enabled) (#2737) 2022-08-24 08:06:48 -04:00
peers feat: Rpc client manage multiple eth client (#2359) 2021-09-22 13:49:20 -04:00
postgres Anon Metrics Broadcast (#2198) 2021-09-01 13:02:18 +01:00
profiling Add profiling with pprof (#754) 2018-03-23 14:58:40 +01:00
protocol fix(messenger): don't remove inactive chats when syncing 2022-08-25 11:51:01 +02:00
rpc feat: Added new params for shortName and color for the networks (#2681) 2022-06-17 00:12:21 +05:30
rtt rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
server Added challenge middleware 2022-08-25 00:02:32 +01:00
services Issue 13813 -- Use messenger ns for browser CRUD (#2801) 2022-08-24 16:05:35 +02:00
signal feat: introduce messenger APIs to extract discord channels 2022-08-04 14:34:23 +02:00
sqlite Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
static [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
t [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
telemetry feat: Push messages to telemetry server when receiving messages 2021-11-10 09:34:14 +01:00
timesource Move services to status-node 2021-07-20 10:57:38 +02:00
transactions feat: Simple transaction router (#2686) 2022-06-09 15:09:56 +02:00
vendor Added challenge middleware 2022-08-25 00:02:32 +01:00
waku rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
wakuv2 feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
.codeclimate.yml fix: exclude migrations from codeclimate (#2284) 2021-07-22 14:04:21 -04:00
.dockerignore Ignore *.test files from all folders (#635) 2018-02-08 14:23:08 +02:00
.gitignore feat: add visual identity service (#2550) 2022-03-11 16:17:48 -05:00
.golangci.yml Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
.travis.yml Remove e2e tests from steps 2021-07-20 10:57:38 +02:00
BOOTNODE.md docs: clarify purpose and describe ports 2020-02-06 18:44:23 +01:00
CMakeLists.txt dev: allow option to force compiling for apple silicon 2022-06-30 09:42:19 +02:00
CONTRIBUTING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:29 +08:00
MAILSERVER.md rcp.sh: curl wrapper for easier RPC calls 2021-08-24 11:23:25 +02:00
Makefile Makefile: drop deprecated -i flag from go build 2022-07-26 13:06:43 +02:00
README.md Explain how to run Waku node in README (#1921) 2020-04-09 18:33:53 +02:00
RELEASING.md rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
VERSION [#13672] Sync contact request decision 2022-08-24 16:08:41 +02:00
WAKU.md Create WAKU.md with spec support (#1855) 2020-02-21 17:56:15 +08:00
go.mod fix(messenger): don't remove inactive chats when syncing 2022-08-25 11:51:01 +02:00
go.sum Added challenge middleware 2022-08-25 00:02:32 +01:00