927 Commits

Author SHA1 Message Date
0x330a
3dee7ec6bd
fix: disappearing viewmodel tests (#1432) 2024-03-13 11:31:08 +11:00
Andrew
3cba05e668 Fix NPE on null display name 2024-03-12 11:32:47 +10:30
0x330a
b62656b1be
feat: add new config enabled timestamp 2024-02-28 17:54:00 +11:00
0x330a
c2ab92e14d
feat: add new config enabled timestamp 2024-02-28 17:52:02 +11:00
Andrew
76f8e9867b Remove logs in UpdateMessageBuilder 2024-02-28 14:25:05 +10:30
Andrew
51f2c3557d Remove log 2024-02-27 16:20:41 +10:30
0x330a
e8c61d6791
fix: remove new group invite clearing flags and handling new configs better 2024-02-22 15:25:51 +11:00
0x330a
f6d351f9c3
fix: remove disappearing config overwrite and fix EC key pair's pubkey being group's identity pubkey 2024-02-22 13:32:03 +11:00
Andrew
affdf1ca07 Disable disappearing closed group messages 2024-02-22 12:25:20 +10:30
Andrew
3cd5ca4a6d Simplify ClosedGroupControlMessage#fromProto 2024-02-21 01:17:32 +10:30
Andrew
39df560f0c Don't shorten ttl of closedGroupControlMessage 2024-02-21 01:16:05 +10:30
Andrew
f5121770ec Remove erroneous expiration on SharedConfigurationMessage 2024-02-20 16:45:23 +10:30
Andrew
a1fadcfa91 Disable closed group control messages disappear 2024-02-19 15:57:10 +10:30
Andrew
c3b416f76c Fix Message#isValid 2024-02-19 12:35:46 +10:30
Andrew
ef50d63410 Cleanup logs 2024-02-19 09:37:53 +10:30
Andrew
398b5bf7b4 Cleanup 2024-02-19 01:23:06 +10:30
Andrew
7c4060a8c4 Cleanup closedGroupMessage serialisation 2024-02-17 17:05:18 +10:30
Andrew
637b7f8249 Fix expiry mode application to Message 2024-02-09 11:13:10 +10:30
Andrew
e7a5be2c73 Fix ExpirationTimerUpdate deserialisation 2024-02-02 18:25:36 +10:30
Andrew
4c7485f53d Fix Message#expiryMode de/serialisation 2024-01-30 15:53:24 +10:30
Andrew
cb0327ecb2 Fix follow setting contentDesc 2024-01-23 14:39:18 +10:00
Andrew
97d6c9928f Fix contentDescriptions 2024-01-23 14:24:10 +10:00
Andrew
43745ce995 Retrieve expiry config from UpdateMessage for GroupsV1 2024-01-23 12:09:36 +10:00
Andrew
848dbd2eb0 Start expiration at end of handling each message type treating call and extraction as DaR 2024-01-23 09:09:16 +10:00
0x330a
106305f118
fix: outdated banner showing and updating on messages properly 2024-01-18 13:46:46 +11:00
Andrew
1ada072884 Copy expiryMode from proto for all Messages 2024-01-17 00:43:37 +10:30
Andrew
12edb9dff9 Coerce disappear type to DaR for Calls and DataExtraction 2024-01-12 11:20:23 +10:30
Andrew
7b26de5bd6 Fix disappear after read 2024-01-11 12:34:41 +10:30
Andrew
6fbae28d70 Fix sent messages disappearing when disappear is off 2024-01-11 12:19:02 +10:30
Andrew
2e62bb15ff Remove intuit expiry settings from normal messages 2024-01-11 12:15:14 +10:30
Andrew
7fd036dee9 Use same dummy hash as ios and desktop in getExpiries() 2023-12-18 13:36:44 +10:30
Andrew
06c258364f Use new strings for follow setting control message 2023-12-15 16:36:02 +10:30
Andrew
988040b577 Hide follow settings button when not applicable 2023-12-15 11:48:54 +10:30
andrew
cf0dbffafd Add follow setting button 2023-12-07 17:50:30 +10:30
andrew
62ef9d3ed4 Add hide password dialogs 2023-11-30 00:45:53 +10:30
andrew
a5a226b468 Allow legacy expiration updates when flag is off 2023-11-29 10:16:54 +10:30
andrew
7bd43b1b3c Fix control messages 2023-11-28 12:47:27 +10:30
andrew
eb97c698f2 Fix disappearing messages proto OFF message 2023-11-20 11:09:41 +10:30
0x330a
d6ba78606e
fix: activate the banner only if conversation is in expiring mode not none 2023-11-16 11:44:21 +11:00
0x330a
56878dbd35
refactor: add sender to be the person to trigger the legacy message send (in case of closed group updates) 2023-11-13 10:33:48 +11:00
andrew
a312ef2b25 Simplify ExpirationTimerUpdate 2023-11-10 12:52:35 +10:30
andrew
29099901d1 Pick correct config on receive message 2023-11-10 12:51:58 +10:30
andrew
617dbc8799 Remove unused ConversationItemFooter 2023-10-27 13:20:37 +10:30
andrew
2228a05b2e Fix control message text 2023-10-26 14:23:09 +10:30
andrew
a9467c7b96 [SES-1203] Disable radio buttons 2023-10-20 13:32:16 +10:30
andrew
019a86482a Fix timestamps 2023-10-16 13:34:10 +10:30
andrew
c24741af62 Remove erroneous disappearing message validations 2023-10-16 09:16:44 +10:30
andrew
793fe63260 Merge branch 'dev' into disappear-2 2023-10-13 15:51:43 +10:30
0x330a
862a47e7e3
feat: add drop attachment download migration in case there are a lot of pending failed attachment downloads 2023-10-11 17:37:39 +11:00
0x330a
e06f9ee79a refactor: change storage adding contacts to create one on ones with a non hidden thread priority and base for testing storage expiration merges from fake polling 2023-10-11 11:14:01 +11:00
andrew
f71c56022d Merge branch 'dev' into disappear-2 2023-10-11 09:48:36 +10:30
andrew
4313eee33b Fix notification update for incoming unsend request 2023-10-11 01:57:33 +10:30
andrew
77f951cadf Use separate tables for mms and sms in LokiMessageDatabase 2023-10-11 01:53:08 +10:30
0x330a
d92e798618
feat: add timestamp update based on message merging success 2023-10-06 17:19:56 +11:00
0x330a
20df73355d
fix: or should be and (#1334) 2023-10-06 13:56:47 +11:00
andrew
892e4b75ec Merge branch 'dev' into disappear-2 2023-10-06 12:01:23 +10:30
andrew
ebbe928fd2 Sync disappear after read with other devices 2023-10-05 12:50:42 +10:30
0x330a
84bc1dcb6b
Update session libsodium (#1326)
* chore: update dependencies for the libsodium dependency and replace aar

* fix: update gradle dependencies to work with integration tests

* fix: test

* refactor: make it use espresso wait

* refactor: bring compose dependencies back to stable releases
2023-10-04 15:17:27 +11:00
0x330a
77a18e337b
Maybe fix oob in media preview adapter cursor adapter (#1324)
* fix: maybe fix oob exception?

* fix: attachment download was broken again

* refactor: wrap in an if and log warning in the bad state
2023-10-04 15:17:07 +11:00
andrew
a7111b0d49 Simplify VM 2023-09-19 13:45:59 +09:30
andrew
885df1e22b Refactor 2023-09-18 01:49:41 +09:30
andrew
14938d2cc0 Fix note-to-self not disappearing 2023-09-14 19:13:27 +09:30
andrew
8b07ffcd2b Fix unresolved theme attributes exception 2023-09-13 14:33:02 +09:30
0x330a
380d6694ea
fix: treat self sends correctly when no contact information for ourself (#1318) 2023-09-07 16:54:38 +10:00
andrew
96afa8d23f Fix expiry timer millis conversion 2023-09-05 14:07:41 +09:30
andrew
ba0ca7d260 Remove Storage#setExpirationTimer 2023-09-02 19:53:43 +09:30
andrew
519bf38ee0 Merge branch 'dev' into disappear-2 2023-09-01 17:21:19 +09:30
andrew
e95c842051 Add preview for all states 2023-08-31 12:09:06 +09:30
andrew
0b11e182ff Merge branch 'dev' into disappear-2 2023-08-30 10:59:00 +09:30
andrew
0e0cbf112b Use separate keys for huawei shared prefs 2023-08-28 11:18:51 +09:30
0x330a
2466d9b4c0
[SES-1002] Synced blind requests (#1303)
* feat: update config to use blinded-msg-requests pr

* feat: add block community message requests bool to protos

* feat: add everything needed for recipientDB to have blocked community requests potentially

* feat: add db migrations

* feat: add sending community block flags and preference options

* feat: add parsing block request flag

* fix: open group message requests were broken anyway

* fix: delete all encoded open group inbox ID bs, fix privacy settings using user config as privacy store

* feat: initial creation sets flag, rename to match libsession implementation value

* fix: recipient blinded checks from open group message for blocking community requests on blinded ID version of recipient, use correct (inverted) values from before for checking polling and empty states etc

* fix: pr comments for view model factory context ref, simplified user config object check for category in PrivacySettingsPreferenceFragment

* fix: pr comments

* fix: migrate some dependencies and functionality out of VM into repository to remove content resolver and context dependecy so tests pass again

* refactor: better naming for hidesInputBar and add more tests for expected recipient view states

* fix: use contact information as opposed to active conversations

* fix: PR comments
2023-08-28 09:51:48 +10:00
andrew
71b2544c31 Use compose 2023-08-25 12:20:34 +09:30
andrew
0ed9731622 Make ExpiryMode non-null in config 2023-08-24 00:32:24 +09:30
andrew
7861eb25c2 Improve param naming for isPushEnabled 2023-08-17 22:36:05 +09:30
andrew
1d9fb13809 Move plugin to huawei flavor 2023-08-11 19:29:31 +09:30
andrew
77100231d2 Fix logs 2023-08-11 17:37:35 +09:30
0x330a
317ecf6cee refactor: making radio options and adapter and list items generic 2023-08-09 16:36:19 +10:00
andrew
e1e5c5937b Use live endpoint for legacy groups 2023-08-09 12:42:53 +09:30
andrew
bcf925c132 Cleanup 2023-08-06 22:22:39 +09:30
andrew
a27f81db30 Fix Huawei push notifications 2023-08-04 13:36:09 +09:30
0x330a
8db92cc55c
feat: add user config integrated into config sync 2023-08-03 17:37:21 +10:00
andrew
cc6f880665 ... 2023-08-03 14:14:55 +09:30
0x330a
06c0ab3080 refactor: let frontend use the normal types and enabled options properly set 2023-08-03 08:54:39 +10:00
0x330a
bcb2071f44
fix: compile issues and dependencies resolved to use shared configs throughout apps 2023-07-31 17:19:38 +10:00
0x330a
19083e2ce7 refactor: use the shared config expiry mode types instead of custom protobufs so we can remove a variable and simplify checks across two variables 2023-07-28 11:39:12 +10:00
0x330a
7f4db64a5a
refactor: refactor ExpirationConfigurationDatabase to return a specific db config after removing config values that are in shared lib 2023-07-27 17:40:59 +10:00
0x330a
87d76b21da
refactor: moving radio indexes out of expiration configuration 2023-07-27 14:22:10 +10:00
0x330a
0e30d14b96
refactor: start looking at how to incorporate the user config changes to the expiry message update times and where to read values from 2023-07-26 17:16:09 +10:00
andrew
d3ea4e2e30 Fix 2023-07-26 14:36:06 +09:30
Andrew
55216875ac Connect Huawei push notifications 2023-07-26 10:48:20 +09:30
0x330a
7f7971e47f Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/res/layout/activity_conversation_v2_action_bar.xml
2023-07-26 09:46:57 +10:00
0x330a
57d43270a8 fix: compile issues 2023-07-25 17:15:54 +10:00
andrew
34990b13d3 ... 2023-07-25 14:49:41 +09:30
0x330a
36df2b37df Merge remote-tracking branch 'origin/disappearing-messages' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/MessageRequestResponse.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
2023-07-25 13:14:29 +10:00
andrew
01e9d15872 Add Huawei flavor 2023-07-25 11:38:06 +09:30
andrew
002793baed Merge branch 'dev' into add-unregister 2023-07-24 09:52:11 +09:30
0x330a
68248db83c fix: compile errors to build 2023-07-19 10:28:52 +10:00
0x330a
74ee433eec fix: more merge conflict compile issues 2023-07-19 00:02:43 +10:00
andrew
9a84f6c67b Merge branch 'dev' into comp 2023-07-18 12:04:56 +09:30
0x330a
07e1d80654 Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/MmsDatabase.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/SmsDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseComponent.kt
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseModule.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/ClearAllDataDialog.kt
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/java/org/thoughtcrime/securesms/service/ExpiringMessageManager.java
#	app/src/main/res/layout/activity_conversation_v2.xml
#	libsession/src/main/java/org/session/libsession/database/StorageProtocol.kt
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageReceiver.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/snode/SnodeAPI.kt
#	libsignal/protobuf/SignalService.proto
#	libsignal/src/main/java/org/session/libsignal/utilities/Snode.kt
2023-07-18 11:39:03 +10:00