Save the a copy of the notification marker ID locally (#3672)
Not all servers support the marker API. If they don't the user will potentially get duplicate Android notifications. To resolve this, store a copy of the notification marker ID locally as well. Defer to the remote marker if it exists (and is newer than the local marker). Fixes https://github.com/tuskyapp/Tusky/issues/3671
This commit is contained in:
parent
f69c2646ca
commit
d644f6e6f3
4 changed files with 1037 additions and 7 deletions
|
|
@ -41,10 +41,11 @@ import java.io.File;
|
|||
TimelineAccountEntity.class,
|
||||
ConversationEntity.class
|
||||
},
|
||||
version = 50,
|
||||
version = 51,
|
||||
autoMigrations = {
|
||||
@AutoMigration(from = 48, to = 49),
|
||||
@AutoMigration(from = 49, to = 50, spec = AppDatabase.MIGRATION_49_50.class)
|
||||
@AutoMigration(from = 49, to = 50, spec = AppDatabase.MIGRATION_49_50.class),
|
||||
@AutoMigration(from = 50, to = 51)
|
||||
}
|
||||
)
|
||||
public abstract class AppDatabase extends RoomDatabase {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue