forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild Disappearing Messages #1313
Merged
Merged
Changes from all commits
Commits
Show all changes
282 commits
Select commit
Hold shift + click to select a range
2494483
Clear open group inbox messages
d23b849
Group settings refactor
b18cebe
Fix conversation title alignment
9e004cd
Expiration config tweaks
8a51c88
Fix legacy expiration timer update handling
065417e
Add synced expiries job
70abf8a
Close expiration settings screen after save
d52fc4d
Default to first expiration timer option
9d056ff
Update disappearing messages client status banner display logic
644484b
Restore disappearing messages menu item
487f99a
Fix expiry timer update handling
3c6b93b
Merge branch 'dev' into disappearing-messages
42923b5
Fix message disappearance after send
304bf42
Fix expiry info disappearance
92b3073
Disappearing messages job update
7d25fd9
Start disappearing after sent
4cfa800
Refactor
2ed2712
Fix disappearing messages menu item title
8f99b5a
Start disappearing after sent for closed groups
2228bfc
Fix expiry start
18ff597
Fix outdated client banner display
1ba8f9f
Remove incomplete SyncedExpiry implementation
e460e08
Cleanup
03c95f1
Expire group update info and call messages
7c6e467
Expire data extraction messages
f600e4d
Add accessibility id's
03766d5
Disappear after read info refactor
6769789
Fix call info expiry
1f0a076
Cleanup refactor
cdbf76c
Only allow admins to change disappearing messages config
b1f6953
Apply conversation config on messages being converted to protobuf
0f4e18f
Update group admin check
06947b6
fix: handle the correct legacy setting of expiring config based on th…
0x330a b6a4fb9
refactor: fix star imports
0x330a 2048e08
fix: legacy message deletions working better now
0x330a f0aba3a
fix: look at early expiring incoming messages for delete after read
0x330a dd51c9a
refactor: move the legacy/updated expiring and add extra condition it…
0x330a ba87cbc
fix: standardise call menu recipient function to share with the new a…
0x330a 325abe0
Merge remote-tracking branch 'upstream/dev' into disappearing-messages
0x330a 4c9a237
fix: compile errors
0x330a 07e1d80
Merge remote-tracking branch 'upstream/dev' into disappearing-messages
0x330a 74ee433
fix: more merge conflict compile issues
0x330a 68248db
fix: compile errors to build
0x330a 36df2b3
Merge remote-tracking branch 'origin/disappearing-messages' into disa…
0x330a 6bd970c
build: rebuild protos
0x330a 57d4327
fix: compile issues
0x330a 7f7971e
Merge remote-tracking branch 'upstream/dev' into disappearing-messages
0x330a 41c05b1
fix: compile issues and deprecate java for kotlin lint
0x330a 2acb7b5
refactor: remove unused parameter
0x330a 6998ae7
fix: use the env->IsSameObject function correctly checking class types
0x330a 0e30d14
refactor: start looking at how to incorporate the user config changes…
0x330a 87d76b2
refactor: moving radio indexes out of expiration configuration
0x330a 7f4db64
refactor: refactor ExpirationConfigurationDatabase to return a specif…
0x330a 19083e2
refactor: use the shared config expiry mode types instead of custom p…
0x330a bcb2071
fix: compile issues and dependencies resolved to use shared configs t…
0x330a 06c0ab3
refactor: let frontend use the normal types and enabled options prope…
0x330a 8db92cc
feat: add user config integrated into config sync
0x330a 2e3d503
fix: issue for overwriting local config with an outdated user config …
0x330a 9dc8f18
fix: prevent message request response from being deleted by any config
0x330a 317ecf6
refactor: making radio options and adapter and list items generic
0x330a 9faa400
refactor: use generic option adapters, fix compile issues
0x330a d6dd7a8
fix: error with legacy type and set type check
0x330a 60f396a
Fix ExpSettingsViewModel
bemusementpark 9123dd9
Utilise typealias for RadioOptions
bemusementpark 78eef35
Add radioOption DSL
bemusementpark d9c48ec
Move getDeleteOptions() to ViewModel
bemusementpark 6818be2
Remove trailing divider
bemusementpark 621c74c
Improve animations
bemusementpark 58b5815
Simplify
bemusementpark 0ed9731
Make ExpiryMode non-null in config
bemusementpark 5142c45
Move recipient into state
bemusementpark 71b2544
Use compose
bemusementpark 7a70564
Fix fading edge
bemusementpark cc5cd51
Fix type radio button
bemusementpark 6602f1b
Show correct options for note to self
bemusementpark 97f28fd
Respect option selected in note to self
bemusementpark b65a383
Reinstate group footer
bemusementpark c228606
Add event flow
bemusementpark 9f6dd72
Cleanup
bemusementpark bfd2370
Add disabled group options
bemusementpark 0b11e18
Merge branch 'dev' into disappear-2
bemusementpark e95c842
Add preview for all states
bemusementpark bc83c3d
Fix outline button colors
bemusementpark 88223be
Cleanup
bemusementpark 4e42438
Improve routing
bemusementpark 58c4467
Implement default times
bemusementpark ef24fb0
Fix test
bemusementpark ee6ce84
Fix TitledRadioButton ripple downstate
bemusementpark 8b320bb
Fix onSetClick
bemusementpark 371d06d
Simplify
bemusementpark 519bf38
Merge branch 'dev' into disappear-2
bemusementpark cdb7a5f
Fix time option not selecting when type options are off
bemusementpark ba0ca7d
Remove Storage#setExpirationTimer
bemusementpark 63713ae
Show debug time in 1-1 conversations
bemusementpark f1d3518
Fix groups
bemusementpark 2d89dda
Fix debug time ordering
bemusementpark bb36b93
Simplify list
bemusementpark 96afa8d
Fix expiry timer millis conversion
bemusementpark 0c9d050
Fix nts options and add 10 second debug time
bemusementpark 14938d2
Fix note-to-self not disappearing
bemusementpark 349247e
Hide disappearing header for note-to-self
bemusementpark 5ce100a
Select currently persisted time when user toggles back to currently p…
bemusementpark 885df1e
Refactor
bemusementpark a7111b0
Simplify VM
bemusementpark 92cae9a
Add 1 day after read test
bemusementpark 987bd89
Add off test
bemusementpark 3bf87ff
Add 1 day after read
bemusementpark e700641
Refactor test
bemusementpark 668bf46
Fix tests
bemusementpark cd0022e
Add old config tests
bemusementpark 7738b19
Add non admin group test
bemusementpark c492a74
Hide set button when disabled
bemusementpark 9968b5d
Fix group admin test
bemusementpark ec8b89b
Minor test refactor
bemusementpark ebbe928
Sync disappear after read with other devices
bemusementpark 149c817
Fix cards visibility pre API 28
bemusementpark 3566260
Remove sarrays__off
bemusementpark 82a94ee
Fix control message accessibility id
bemusementpark 892e4b7
Merge branch 'dev' into disappear-2
bemusementpark 5986196
Accessibility
bemusementpark d92e798
feat: add timestamp update based on message merging success
0x330a b211c8b
Rename ExpirationSettings to DisappearingMessages
bemusementpark 17f41d7
Improve ui vm separation
bemusementpark 3d6c7db
Simplify MarkReadReceiver#process
bemusementpark c86b229
Add mms and sms table to loki db
bemusementpark 77f951c
Use separate tables for mms and sms in LokiMessageDatabase
bemusementpark f71c560
Merge branch 'dev' into disappear-2
bemusementpark e06f9ee
refactor: change storage adding contacts to create one on ones with a…
0x330a d37e724
Call expire after read DaR messages
bemusementpark 88e7ef1
Fix db typo
bemusementpark 793fe63
Merge branch 'dev' into disappear-2
bemusementpark 008bbd8
Optimise DAR message expiry update & lookup
bemusementpark c24741a
Remove erroneous disappearing message validations
bemusementpark f6a736b
Merge remote-tracking branch 'origin/master' into disappear-2
0x330a acb1181
feat: add more testing functionality for the expected current / updat…
0x330a 73538a4
Remove log
bemusementpark 8145a7d
Merge branch 'disappear-2' of github.com:bemusementpark/session-andro…
bemusementpark 019a864
Fix timestamps
bemusementpark 2d0c439
refactor: use just the storage setExpirationConfiguration function
0x330a 8649420
Fix group disappearing messages not opening
bemusementpark b2f92bc
Add contentDescriptions to radio buttons
bemusementpark 8399771
Add contentDescription to settingsPager
bemusementpark a9467c7
[SES-1203] Disable radio buttons
bemusementpark 2228a05
Fix control message text
bemusementpark 617dbc8
Remove unused ConversationItemFooter
bemusementpark 61c51ec
Remove timer from message view
bemusementpark 7b533f3
Fix timer color
bemusementpark a108e3b
Show timer in status
bemusementpark e3011c5
Fix padding and ordering
bemusementpark 1b5b7cf
Use animated timer in control message
bemusementpark 555209b
Fix animation
bemusementpark 0493d24
feat: update libsession latest stable
0x330a 1c8612c
Migrate db to autoincrement id for sms and mms
bemusementpark b0447cf
Fix gap under messages
bemusementpark 2909990
Pick correct config on receive message
bemusementpark a312ef2
Simplify ExpirationTimerUpdate
bemusementpark 806cb21
Fix disappearing off icon
bemusementpark d12bce5
feat: add basic last sent legacy message DB migration and creation fo…
0x330a 56878db
refactor: add sender to be the person to trigger the legacy message s…
0x330a 565c92f
fix: clear on updated legacy message from existing legacy thread reci…
0x330a d3911fb
Fix legacy options
bemusementpark fc9ea46
Merge branch 'disappear-2' of github.com:bemusementpark/session-andro…
bemusementpark 725ad43
Fix timer icon flashes expired
bemusementpark 4ed5b57
Fix read/write legacy
bemusementpark d6ba786
fix: activate the banner only if conversation is in expiring mode not…
0x330a eb97c69
Fix disappearing messages proto OFF message
bemusementpark 8cc26b8
Fix contentDescriptions
bemusementpark 7bd43b1
Fix control messages
bemusementpark a5a226b
Allow legacy expiration updates when flag is off
bemusementpark eecea12
Add set button contentDescription
bemusementpark a4d3fa8
Convert ExpiringMessageManager to Kotlin
bemusementpark 71b2f1e
Hold onto last incoming and outgoing expiration update for 1 on 1 convos
bemusementpark c60b6d9
Add follow setting button
bemusementpark cf0dbff
Add follow setting button
bemusementpark 988040b
Hide follow settings button when not applicable
bemusementpark 06c2583
Use new strings for follow setting control message
bemusementpark a3b6f68
Refactor follow setting dialog
bemusementpark f921fc4
Remove unused markExpireStarted overload
bemusementpark 7fd036d
Use same dummy hash as ios and desktop in getExpiries()
bemusementpark 5a047da
Remove disappearing messages scheduling from VisibleMessageView
bemusementpark 6b1628d
Use expiration in message instead of config
bemusementpark 2e62bb1
Remove intuit expiry settings from normal messages
bemusementpark 6fbae28
Fix sent messages disappearing when disappear is off
bemusementpark 7b26de5
Fix disappear after read
bemusementpark 12edb9d
Coerce disappear type to DaR for Calls and DataExtraction
bemusementpark 1339c60
Fix received messages deleted instantly
bemusementpark c8377b0
Fix follow setting visible in groups
bemusementpark 1ada072
Copy expiryMode from proto for all Messages
bemusementpark 106305f
fix: outdated banner showing and updating on messages properly
0x330a a845d2f
Add Set button contentDescription
bemusementpark e2e5a36
Merge remote-tracking branch 'refs/remotes/origin/disappear-2' into d…
bemusementpark 848dbd2
Start expiration at end of handling each message type treating call a…
bemusementpark 43745ce
Retrieve expiry config from UpdateMessage for GroupsV1
bemusementpark 97d6c99
Fix contentDescriptions
bemusementpark cb0327e
Fix follow setting contentDesc
bemusementpark 4c7485f
Fix Message#expiryMode de/serialisation
bemusementpark e7a5be2
Fix ExpirationTimerUpdate deserialisation
bemusementpark 246e8bf
Fix messages not marked as read onScroll when message count is unchanged
bemusementpark a326c47
Don't start DaR timer view until it has actually started
bemusementpark a47bf23
Fix last seen channel being closed by consuming flow
bemusementpark 730851d
Remove erroneous scheduleDeletion in marked read
bemusementpark c7ffa61
Simplify MarkReadReceiver
bemusementpark f3bb2e5
Add new call control message UI with timer icon above
bemusementpark ace7e3b
Don't delete old call messages on new call message
bemusementpark 3fa4122
Tweak call message style
bemusementpark ac37b2b
Convert ConversationReactionOverlay to Kotlin
bemusementpark b8aa469
Add auto-delete subtitle to context menu
bemusementpark b56c3bd
Add expiration subtitle to Delete option in message context menu
bemusementpark 779101d
Close MessageDetailsActivity when message is deleted
bemusementpark 701e3cb
Close message context menu on delete
bemusementpark 84e92e1
Fix context auto delete timer doesn't show if opened before successfu…
bemusementpark 181dd15
Fix non-sms messages not deserialisable by kryo
bemusementpark 637b7f8
Fix expiry mode application to Message
bemusementpark e4999e3
Merge branch 'dev' into disappear-2
bemusementpark 1176273
Fix accessibility id
bemusementpark 64a2b4a
Fix merge
bemusementpark 610d717
Fix sent status accessibility id
bemusementpark 8e4266d
Fix mms messages delete previous timer messages
bemusementpark 91807db
Set delete in context menu to color destructive
bemusementpark 128ae81
Add 30 seconds to disappearing debug settings
bemusementpark 8293c12
Fix subtitle color
bemusementpark 54b7e11
feat: update libsession-util to latest dev
0x330a 7c4060a
Cleanup closedGroupMessage serialisation
bemusementpark 74d96fa
Fix disappearing messages setting lost on group member change
bemusementpark 9fd244d
Cleanup ConversationActionBarView
bemusementpark 835fa68
Cleanup DisappearingMessagesActivity
bemusementpark d33de9c
Cleanup ConversationActivityV2
bemusementpark c5c3365
Cleanup ConversationReactionOverlay
bemusementpark 88dfcee
Cleanup ConversationViewModel
bemusementpark 403058c
Cleanup VisibleMessageView
bemusementpark 4ead21c
Cleanup SmsDatabase
bemusementpark 66dcae0
Cleanup Storage
bemusementpark 2e50dc0
Cleanup MarkReadReceiver
bemusementpark 398b5bf
Cleanup
bemusementpark ef50d63
Cleanup logs
bemusementpark c3b416f
Fix Message#isValid
bemusementpark a1fadcf
Disable closed group control messages disappear
bemusementpark f512177
Remove erroneous expiration on SharedConfigurationMessage
bemusementpark 39df560
Don't shorten ttl of closedGroupControlMessage
bemusementpark 3cd5ca4
Simplify ClosedGroupControlMessage#fromProto
bemusementpark affdf1c
Disable disappearing closed group messages
bemusementpark f6d351f
fix: remove disappearing config overwrite and fix EC key pair's pubke…
0x330a e8c61d6
fix: remove new group invite clearing flags and handling new configs …
0x330a 19c3b63
Set thread to 14 days old when added from libSessionContacts
bemusementpark d143d8a
Fix old threads being set to 2 weeks ago
bemusementpark 1a81c72
Set NTS to 14 days ago when created in updateUser
bemusementpark 1c38fc0
Push empty convos to bottom and hide thread date when unknown
bemusementpark 51f2c35
Remove log
bemusementpark 22460df
Fix expiry not added to community invites
bemusementpark 76f8e98
Remove logs in UpdateMessageBuilder
bemusementpark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
app/src/main/java/org/thoughtcrime/securesms/ExpirationDialog.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may as well be deterministic value for repeatability if easy to do so.