Commit Graph

681 Commits

Author SHA1 Message Date
Michael Kirk
b2f9abbc7c transmit key version byte
// FREEBIE
2017-06-23 15:12:51 -04:00
Matthew Chen
14c64239a3 Merge branch 'charlesmchen/archiveSessionsOnSSQ' 2017-06-22 18:18:49 -04:00
Matthew Chen
e9219743ff Archive sessions on the 'session store' queue.
// FREEBIE
2017-06-22 18:14:21 -04:00
Michael Kirk
793a7449b0 Merge branch 'mkirk/archive-sessions-on-id-change' 2017-06-22 17:24:05 -04:00
Michael Kirk
5da7dc1fd3 Archive sessions upon identity change.
Session clearing must be in IdentityKeyStore implementation

Trying to do it in the protocol will not work with multiple devices,
because we'll only archive the session of the first sending device.

// FREEBIE
2017-06-22 17:23:57 -04:00
Matthew Chen
07e0291377 Merge branch 'charlesmchen/diskUsage' 2017-06-22 17:17:00 -04:00
Matthew Chen
e8e7b6bcba Add creation timestamp to attachment streams.
// FREEBIE
2017-06-22 17:09:36 -04:00
Michael Kirk
8fda18a8e3 Merge branch 'mkirk/verification-sync' 2017-06-22 15:19:59 -04:00
Michael Kirk
5a2169fa78 Don't sync verification until NullMessage succeeds. This better mirrors
existing sync message behavior

// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
4c22f371a9 better comment on strange padding
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
6dea4c9fef fix padding calculation
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
a5660f4db4 cleanup ahead of PR
synchronize/dispatch when dequeuing verification sync messages

// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
d927cba5ce don't sync verified state when we have never recorded the recipients
identity

e.g. every contact you have which is a signal user whom you've never
messaged will not have a recorded RecipientIdentity

// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
badaa54327 sync all verification states with contact sync
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
12bfae10ed All sync messages should have 1-512 random padding
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
35ee92f38f send null message when syncing verification state
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
99cd8fc27d Log when receiving null message
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
f653bc36a8 sync verification state with contacts
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
48b3f498a9 WIP: adapt to verification proto changes
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
f526a372c9 proto update
// FREEBIE
2017-06-22 15:19:46 -04:00
Michael Kirk
6566ea694c no need to send sync messages when only 1 device
// FREEBIE
2017-06-22 15:19:46 -04:00
Matthew Chen
8b04e2a880 Merge branch 'charlesmchen/logOverflow' 2017-06-22 14:27:30 -04:00
Matthew Chen
ed369436fb Reduce chattiness of logs; increase log file sizes.
// FREEBIE
2017-06-22 13:24:53 -04:00
Matthew Chen
b946badd97 [SSK] Reduce chattiness of logs; increase log file sizes.
// FREEBIE
2017-06-22 10:10:30 -04:00
Matthew Chen
4609c508ec Merge branch 'charlesmchen/fixCFail' 2017-06-21 17:45:00 -04:00
Matthew Chen
30961cf2a5 Fix OWSCFail() macro.
// FREEBIE
2017-06-21 17:44:51 -04:00
Matthew Chen
4eacfe768f Merge branch 'charlesmchen/verificationSyncVsUI' 2017-06-21 17:43:20 -04:00
Matthew Chen
d8b34f6302 Ensure verification UI is updated to reflect incoming verification state sync messages.
// FREEBIE
2017-06-21 16:29:20 -04:00
Matthew Chen
2315ab79de Merge branch 'charlesmchen/attachmentStreamUpgradePerf' 2017-06-21 10:35:33 -04:00
Matthew Chen
e86e175ceb Respond to CR.
// FREEBIE
2017-06-21 10:35:25 -04:00
Matthew Chen
beb4ed71e7 Respond to CR.
// FREEBIE
2017-06-21 09:58:19 -04:00
Matthew Chen
cf65cc3be5 Improve perf of attachment stream file path upgrade.
// FREEBIE
2017-06-20 17:39:33 -04:00
Matthew Chen
ed249840c6 Merge branch 'charlesmchen/slowLaunchRelease' 2017-06-20 13:17:32 -04:00
Matthew Chen
27e5c836b7 Refine observation of async registration completion.
// FREEBIE
2017-06-20 12:04:59 -04:00
Matthew Chen
7af758bc67 Merge branch 'charlesmchen/enableVerificationStateSync' 2017-06-19 19:47:25 -04:00
Matthew Chen
07bec72f61 Enable verification state sync.
// FREEBIE
2017-06-19 19:46:28 -04:00
Michael Kirk
5110c5892d Merge branch 'mkirk/verification-key-length' 2017-06-19 17:26:33 -04:00
Michael Kirk
e746c6b7ec append/remove key type as necessary to fix verification syncing
// FREEBIE
2017-06-19 15:47:13 -04:00
Michael Kirk
2059bb4966 Merge branch 'WhisperSystems-mkirk/fix-verification-crash' 2017-06-19 15:33:55 -04:00
Michael Kirk
742e0d3c97 message sending must be on main thread
include description for verification sync messages

// FREEBIE
2017-06-19 10:57:13 -04:00
Matthew Chen
c0cb153f29 Merge branch 'charlesmchen/holidayCodeReviewOmnibus' 2017-06-17 13:46:32 -04:00
Matthew Chen
5d7c012b5c Respond to CR.
// FREEBIE
2017-06-17 13:41:29 -04:00
Matthew Chen
d80e42e0a0 Respond to post-holiday code reviews.
// FREEBIE
2017-06-17 13:37:59 -04:00
Matthew Chen
18e6a1b1cb Respond to post-holiday code reviews.
// FREEBIE
2017-06-17 13:37:59 -04:00
Matthew Chen
a9bac8bce7 Merge branch 'charlesmchen/syncVerificationRedux' 2017-06-17 13:34:41 -04:00
Matthew Chen
498c0ef681 Respond to CR.
// FREEBIE
2017-06-17 13:34:26 -04:00
Matthew Chen
44e1f4a14a Rework verification state sync per latest proto schema.
// FREEBIE
2017-06-16 12:22:49 -04:00
Matthew Chen
26e6aab071 Merge branch 'charlesmchen/lastAppLaunchCompletedVersion' 2017-06-16 12:05:00 -04:00
Matthew Chen
8ef118f5da Cache the attachments folder in TSAttachmentStream.
// FREEBIE
2017-06-16 11:17:12 -04:00
Matthew Chen
b9f9b6a0c3 Add isFirstLaunch method to AppVersion.
// FREEBIE
2017-06-16 10:59:48 -04:00