mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-26 13:46:51 +00:00
Replace rather than insert into push db on duplicate incoming.
Combined with the switch to server acked messages, this will prevent the race condition that occurred when an incoming message showed up at exactly the moment the app updated. It'd be great if we could just do REPLACE INTO, but it's too late to add a UNIQUE() constraint. =( Fixes #2287 Closes #3029 // FREEBIE
This commit is contained in:
@@ -58,7 +58,7 @@ public class DatabaseUpgradeActivity extends BaseActivity {
|
||||
public static final int ASYMMETRIC_MASTER_SECRET_FIX_VERSION = 73;
|
||||
public static final int NO_V1_VERSION = 83;
|
||||
public static final int SIGNED_PREKEY_VERSION = 83;
|
||||
public static final int NO_DECRYPT_QUEUE_VERSION = 84;
|
||||
public static final int NO_DECRYPT_QUEUE_VERSION = 113;
|
||||
|
||||
private static final SortedSet<Integer> UPGRADE_VERSIONS = new TreeSet<Integer>() {{
|
||||
add(NO_MORE_KEY_EXCHANGE_PREFIX_VERSION);
|
||||
|
||||
Reference in New Issue
Block a user