Commit Graph

3522 Commits

Author SHA1 Message Date
Michael Kirk
1d5c0aeffa work around missing grdb_migrations table 2019-11-18 12:06:15 -07:00
Michael Kirk
71fcc1cd58 Ensure new-user schema migrations run
The "file exists" check doesn't work, because GRDB itself automatically creates
the database earlier on, so instead we inspect if any migrations exist in the
migrations table.

also removes a spurious main-thread check for a non-ui db accessor and renames
it to be more ergonomic.
2019-11-18 12:06:15 -07:00
Michael Kirk
8289539b3a fixup logging 2019-11-18 10:52:27 -07:00
Michael Kirk
45a3fccb58 dont change order of downloaded attachments 2019-11-15 18:51:37 -07:00
Matthew Chen
c6ed1976a1 Avoid duplicate sort ids in migrated interactions. 2019-11-15 13:31:25 -03:00
Matthew Chen
401288ebba Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:19:11 -03:00
Matthew Chen
571caaae1f Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:17:54 -03:00
Matthew Chen
2e4b697499 Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:17:32 -03:00
Matthew Chen
005e4d3e13 Avoid duplicate sort ids in migrated interactions. 2019-11-15 11:45:55 -03:00
Michael Kirk
e54c47e15e Fix index ordering and off by 1
ROW_NUMBER starts at 1, but we were treating the result as if it were 0 based.
2019-11-14 18:10:24 -07:00
Matthew Chen
b472abdd98 Touch thread when touching interaction. 2019-11-14 10:17:58 -03:00
Nora Trapp
2316865975 Feature flags for beta 2019-11-13 15:28:07 -08:00
Matthew Chen
d3c1696337 Set feature flags to 'GRDB for all in beta'. 2019-11-13 11:25:59 -03:00
Nora Trapp
fbdafc6bd5 Store KBS keys in the database instead of the keychain 2019-11-13 10:48:36 -03:00
Nora Trapp
09895d753c Attempt to fix Bench crashes 2019-11-13 10:47:44 -03:00
Nora Trapp
ea7cc2b78f Provisioning message will not always contain a UUID 2019-11-13 10:47:02 -03:00
Michael Kirk
fe8503ebc7 Fix freeze/crash in gallery
If for whatever reason we can't load the underlying image, we must return nil
and call the failure handler. Otherwise the thumbnailing service doens't know
what to do with an empty image.
2019-11-13 10:46:18 -03:00
Matthew Chen
ee2b0f3f47 Fix mispelling. 2019-11-13 10:39:07 -03:00
Michael Kirk
6cfd7c3f20 avoid assertion failure
none of the underlying errors are (currently) retryable anyway, so there's no
harm in *never* retrying unless we add some retryable error later.
2019-11-13 10:38:38 -03:00
Matthew Chen
80be65ba14 Further increase restart checkpoint frequency. 2019-11-13 10:35:11 -03:00
Matthew Chen
0c84f99246 Perform restart checkpoints more often. 2019-11-13 10:35:11 -03:00
Matthew Chen
9bdb85b897 Fix test broken by group manager. 2019-11-13 10:29:07 -03:00
Matthew Chen
9b015a57ff Combine row ids. 2019-11-12 15:24:02 -03:00
Matthew Chen
0d28d827dd Fix build break. 2019-11-12 14:44:13 -03:00
Matthew Chen
888237723a Don't preserve YDB database after migration. 2019-11-12 13:24:29 -03:00
Michael Kirk
e2bb91e260 avoid assert 2019-11-12 09:20:05 -07:00
Michael Kirk
f7f809686a dont crash in debug when a network error occurs 2019-11-12 09:20:05 -07:00
Michael Kirk
aeaf665410 fix sticker installation race 2019-11-12 09:20:05 -07:00
Michael Kirk
b54775d1a2 better baseclass logging 2019-11-12 09:02:57 -07:00
Michael Kirk
7095b29ee4 fixup doc 2019-11-12 09:01:58 -07:00
Michael Kirk
e11386bc03 avoid large reset assert 2019-11-12 09:01:58 -07:00
Matthew Chen
406087c414 Fix build breakage. 2019-11-12 09:07:57 -03:00
Matthew Chen
b38a64cce8 Revert "Revert "Merge branch 'charlesmchen/groupManager2'""
This reverts commit 7530dee591.
2019-11-12 09:02:52 -03:00
Matthew Chen
7530dee591 Revert "Merge branch 'charlesmchen/groupManager2'"
This reverts commit 26fd0d0812, reversing
changes made to c17865b750.
2019-11-11 20:01:45 -03:00
Matthew Chen
fa9e49136d Apply group manager in tests. 2019-11-11 17:31:21 -03:00
Matthew Chen
0ecee32271 Apply group manager in tests. 2019-11-11 17:31:21 -03:00
Matthew Chen
5e5aa2368b Apply group manager in tests. 2019-11-11 17:31:21 -03:00
Matthew Chen
ed3ef25223 Fast thread deletion. 2019-11-11 17:14:25 -03:00
Nora Trapp
f097ebaeda Allow switching onboarding mode 2019-11-11 11:36:07 -08:00
Nora Trapp
f09791b722 Handle the key type android prepends to their identity public key. 2019-11-08 19:10:51 -08:00
Nora Trapp
8f189c8b9f Don't show synced message in conversation list or below date 2019-11-08 19:09:54 -08:00
Nora Trapp
d9a5500cbc Android also doesn't require readReceipts 2019-11-08 12:35:16 -08:00
Nora Trapp
426c95d40d User-agent should not be required, android doesn't provide it. 2019-11-08 12:35:16 -08:00
Matthew Chen
0bfb397f45 Don't auto-add local user to member list when creating a group model. 2019-11-08 16:50:57 -03:00
Matthew Chen
42e5d20a52 Respond to Cr. 2019-11-08 16:20:25 -03:00
Matthew Chen
02d9669ee6 Respond to CR. 2019-11-08 15:55:44 -03:00
Matthew Chen
620fd36dc9 Respond to Cr. 2019-11-08 15:43:04 -03:00
Matthew Chen
8f7ca87b99 Track thread changes in conversation view snapshots. 2019-11-08 15:43:04 -03:00
Matthew Chen
f68cfff23c Track thread changes in conversation view snapshots. 2019-11-08 15:43:04 -03:00
Matthew Chen
bc0b768f69 Add change collection to database snapshots. 2019-11-08 15:43:04 -03:00