Commit Graph

72 Commits

Author SHA1 Message Date
Fedor Indutny
4a00ea46bc Allow requesting profile without profileKey 2022-03-09 12:23:21 -08:00
Fedor Indutny
a72cf075ef Optimize initial storage service fetch 2022-03-09 10:22:34 -08:00
Josh Perez
eb91eb6fec Process incoming story messages 2022-03-04 13:14:52 -08:00
Fedor Indutny
3b4106d9dd Change order of syncs during linking 2022-03-02 14:53:47 -08:00
Scott Nonnenberg
b33b5d2a30 profileKey: Check length of incoming values, clear on failed send/fetch 2022-02-22 14:34:57 -06:00
Fedor Indutny
a0b05f41e3 Dropped storage keys should not cause upload 2022-02-14 11:36:32 -08:00
Fedor Indutny
e0205ffff8 Drop invalid storage service keys 2022-02-11 13:05:24 -08:00
Fedor Indutny
cb5131420f Update storageService logging 2022-02-08 10:00:18 -08:00
Fedor Indutny
b6287f4839 Properly propagate 204 to fetchManifest 2022-01-31 11:58:20 -08:00
Scott Nonnenberg
68a458ec4a Honor preferContactAvatars field on AccountRecord 2022-01-25 09:44:45 -08:00
Fedor Indutny
8cd557ff91 Add extra logging for change phone number 2022-01-20 14:44:25 -08:00
Josh Perez
978f57f076 Add some logging around setting preferred reaction emojis 2021-12-06 11:39:48 -05:00
Evan Hahn
67b17ec317 Hide "become a sustainer" button if you're already a sustainer 2021-11-30 17:29:57 +01:00
Evan Hahn
03631481e1 Format code with prettier 2021-11-11 17:13:46 -06:00
Evan Hahn
5619eeca83 Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
Fedor Indutny
f204784afe Prune invalid conversations from storage service 2021-11-11 13:38:02 -08:00
Fedor Indutny
519ca05911 Update electron to 15.3.0 2021-11-08 22:43:37 +01:00
Fedor Indutny
63fcdbe787 Use UUIDs in group database schema 2021-10-26 15:59:08 -07:00
Evan Hahn
74fde10ff5 Prefer import type when importing types 2021-10-26 14:15:33 -05:00
Fedor Indutny
4ef0bf96cc Uint8Array migration 2021-09-23 17:49:05 -07:00
Josh Perez
65ddf0a9e8 Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
Evan Hahn
20be8a11fe Read and write preferred reactions to storage 2021-09-15 11:59:51 -07:00
Fedor Indutny
c7e7d55af4 UUID-keyed lookups in SignalProtocolStore 2021-09-09 19:38:11 -07:00
Josh Perez
c6b4f14f3b Fixes no group description unless admin 2021-08-26 16:12:07 -05:00
Josh Perez
4371996362 Reduce the amount of storage service conflicts 2021-08-23 19:17:36 -04:00
Josh Perez
91af0dad78 Faster preferences window 2021-08-18 13:08:14 -07:00
Fedor Indutny
cc5da98565 Ignore empty e164 in storage service 2021-08-06 11:20:11 -07:00
Fedor Indutny
a001882d58 Change Phone Number notifications 2021-08-05 16:34:49 -07:00
Evan Hahn
6b290a0f0c @mentions notifications 2021-08-05 07:35:33 -05:00
Fedor Indutny
570fb182d4 Fully move to protobufjs 2021-07-13 11:54:53 -07:00
Fedor Indutny
ddbbe3a6b1 More protobufjs migration 2021-07-09 12:36:10 -07:00
Fedor Indutny
9f0c630574 Move to protobufjs in ts/groups.ts 2021-06-22 09:46:42 -05:00
Fedor Indutny
562ab5a5a5 Fix syncing of "Off" setting for default timer 2021-06-15 10:06:53 -07:00
Fedor Indutny
8f5086227a Enforce stronger types for ArrayBuffers and storage 2021-06-14 17:09:37 -07:00
Josh Perez
d4875fd8f4 Remove isPrivate, isMe, isGroupV1, isGroupV2 from model 2021-06-07 09:39:13 -07:00
Fedor Indutny
19f8042cd3 Universal Disappearing Messages 2021-06-01 13:45:43 -07:00
Fedor Indutny
80da8bb47b Display SMS/MMS disclaimer in empty search results 2021-05-20 17:37:17 -07:00
Evan Hahn
8ef14e6f39 When incoming message should've been sealed sender, reply with profile key 2021-05-05 09:39:16 -07:00
Scott Nonnenberg
86d2a4b5dd decrypt/encrypt with libsignal-client, remove libsignal-protocol-javascript 2021-04-29 14:27:35 -07:00
Josh Perez
5e2d48cc2f Do not populate left pane on initial link 2021-04-20 19:16:49 -04:00
Evan Hahn
ea6562b7ac Merge branch 'hiqua-no_lower_limit_query' into next-beta 2021-04-14 14:14:57 -07:00
Josh Perez
a2a361f0bf Extra validations for storage service 2021-04-09 16:12:05 -04:00
Josh Perez
6c0acd09df Sync mute state 2021-04-09 11:19:38 -05:00
Josh Perez
9438b7b3fe Fixes pinned conversations sync 2021-04-08 15:27:20 -04:00
Josh Perez
e4db9358cf Storage service logging same 2021-04-06 15:54:47 -07:00
Evan Hahn
a7c78b3b23 Storage service: save new AccountRecord fields to disk 2021-04-05 18:08:50 -04:00
Josh Perez
1264e6da2b Retain protections on gv1 records that match gv2 ids 2021-03-30 20:40:48 -04:00
Evan Hahn
b725ed2ffb Refresh profiles on app start (at most every 12 hours) 2021-03-19 16:57:36 -04:00
Fedor Indutny
11bcbded64 Storage Service fixes to prevent crashes on Android
* Merge report v1 group settings into local v2 group

The invariants of Storage Service mandate that the remote data always
takes precendence over the local data. We have to updated
blocked/whitelisted/... of the v2 group even if the record is for the v2
group. After doing such update - sync the manifest back to the Storage
Service with correct v2 record for the group.

* Repair errored records before uploading manifest

Fetch and re-attempt to merge errored records before uploading the
manifest. This is useful in the cases where we were not aware of the V1
group when the remote manifest was fetched, and became aware of it
before the new manifest is generated. In such scenario, we should fetch
the records for things we have failed on last time and attempt to merge
them with our data. If they are merged - we should not let their
storageIDs hang in the new manifest, which would cause group duplicates
and crashes on other clients.

* Create v1 group for storage service record

If we receive storage service record with v1 group that we didn't sync
yet (or just don't have for any other reason) - create it instead of
pushing it to `storage-service-error-records`.
2021-03-19 16:57:36 -04:00
Josh Perez
230604b451 Fix for storage service profileSharing setting 2021-03-19 16:57:35 -04:00