Commit Graph

76 Commits

Author SHA1 Message Date
Harris 4355322ee5 Merge branch 'master' into calls
# Conflicts:
#	app/build.gradle
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/ControlMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/model/DisplayRecord.java
#	app/src/main/res/values/strings.xml
#	app/src/main/res/values/styles.xml
#	libsession/src/main/java/org/session/libsession/database/StorageProtocol.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageReceiver.kt
#	libsession/src/main/java/org/session/libsession/utilities/TextSecurePreferences.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
2022-03-17 16:49:35 +11:00
ceokot 206505abe8
feat: Add conversation filtering for message requests (#830)
* feat: Message requests

* Apply contact sync message

* Filter based on message requests toggle

* Add message requests screen

* Implement message requests screen

* Handle message request buttons

* Handle approval syncing

* Display message request response

* Display pending message request

* Display pending message request

* Add approval migrations

* Send message request response

* Fix conversation filters

* Add approval migration

* Handle message request response

* Update message request response proto

* Update message request response handling

* Refresh message requests

* Show message request banner on new message request

* Message request item layout tweaks

* Fix latest unapproved conversation query

* Handle sent message request responses on restore

* QA feedback tweaks

* Remove send limit on message requests

* Config message handling tweaks

* Reverse conversation upon message request approval

* Remove read receipts, delete declined conversations

* Fix contact filtering in config messages

* Fix message request order and handle deletion

* Fix message request snippet on home screen

* Refresh message request list after decline or clearing all

* Fix message request reversal

* Fix message request notifications

* Disable media buttons for message requests

* Hide message request banner after reading

* Refresh message request banner
2022-03-04 08:46:39 +02:00
jubb 38164ea23d Merge remote-tracking branch 'upstream/master' into calls
# Conflicts:
#	app/build.gradle
#	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/conversation/v2/messages/ControlMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt
#	app/src/main/res/values/strings.xml
#	gradle.properties
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/ClosedGroupPollerV2.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPollerV2.kt
#	libsession/src/main/java/org/session/libsession/utilities/TextSecurePreferences.kt
2022-02-08 09:58:57 +11:00
Harris dd1da6b1a4
Add a global search (#834)
* feat: modifying search functionalities to include contacts

* feat: add global search UI input layouts and color attributes

* feat: add global search repository and model content

* feat: adding diff callbacks and wiring up global search vm to views

* feat: adding scroll to message, figuring out new query for recipient thread search

* feat: messing with the search and highlighting functionality after wiring up bindings

* fix: compile error from merge

* fix: gradlew build errors

* feat: filtering contacts by existing un-archived threads

* refactor: prevent note to self breaking, update queries and logic in search repo to include member->group reverse searches

* feat: adding home screen new redesigns for search

* feat: replacing designs and adding new group subtitle text

* feat: small design improvements and incrementing gradle build number to install on device

* feat: add scrollbars for search

* feat: replace isVisible for cancel button now that GlobalSearchInputLayout.kt replaces header

* refactor: all queries are debounced not just all but 2 char

* refactor: remove visibility modifiers for cancel icon

* refactor: use simplified non-db and context related models in display, remove db get group members call from binding data

* fix: use threadId instead of group's address

* refactor: better close on cancel, removing only yourself from group member list in open groups

* refactor: seed view back to inflated on create and visibility for empty placeholder and seed view text

* refactor: fixing build issues and new designs for message list

* refactor: use dynamic limit

* refactor: include raw session ID string search for non-empty threads

* fix: build lint errors

* fix: build issues

* feat: add in path to the settings activity

* refactor: remove wildcard imports
2022-02-07 17:06:27 +11:00
ceokot c2657bb785
feat: Add the option to mark a conversation as read (#816)
* feat: Add the option to mark a conversation as read

Fixes #789

* Extract and share logic to mark all as read

* Fix merge conflict issues
2022-01-16 19:02:39 +02:00
jubb 2966dc00ab refactor: testing out the full screen intents 2021-12-06 18:11:26 +11:00
Harris 23e644150a fix: incoming ringer fix on receiving call, call notification priorities and notification channel update 2021-11-17 15:46:45 +11:00
jubb 99b6a38b90 feat: call establishing and displaying 2021-11-10 11:57:03 +11:00
Harris 0516526923 refactor: use hilt to provide DB instead of our own factory, inject it in some places where possible 2021-10-04 18:51:19 +11:00
Harris e036344c76 refactor: performance improvements in batch message processing, synchronized cache access and audible message notifications.
Increase audible timeout on DefaultMessageNotifier.java, don't send in-thread notification based on last audible notification.

Create a batch message receive job to handle up to 20 chunked messages at a time per job instead of singular or open group poll amount

Remove synchronized access to recipient cache and replace with a concurrent cache that's lock free from perf tracing monitor contention
2021-09-29 15:29:24 +10:00
Harris 873fb6b578 fix: clear notifications properly on muted groups 2021-08-20 16:09:44 +10:00
Harris 021d81ab98 refactor: alignment 2021-08-19 13:45:57 +10:00
Harris 7ac340b3ca refactor: remove unused constant 2021-08-19 13:44:38 +10:00
Harris ef8cdf3127 fix: handle bundling properly with the messageIdTag check 2021-08-19 12:24:28 +10:00
Harris 975076cb5c fix: bundled notification no longer notifies on mentions only 2021-08-19 12:14:21 +10:00
Harris ea71334524 Merge remote-tracking branch 'upstream/dev' into conversation_camera_improvement 2021-08-18 12:12:02 +10:00
ryanzhao ecc881bc7c store server hash value for incoming messages 2021-08-17 14:34:49 +10:00
Harris dbec5ad53c fix: fixing the message dismissal of notifications for threads upon activity resume. using media send activity's camera intent for consistency 2021-08-16 14:05:49 +10:00
jubb 072ea41b46 refactor: re-add thread ID for mentions, fix path resolver call
refactor: re-add thread ID for mentions, fix path resolver call
2021-07-30 13:46:57 +10:00
jubb 7bf3b7a033 refactor: quotes also render for mention only notification style, fix mention manager not having public keys for conversations on load 2021-07-30 10:30:04 +10:00
jubb 2a2d97be4c fix: revert simplified sendSingleThreadNotification that wasn't bundling properly, add mentions properly resolving by adding cache call 2021-07-30 09:54:16 +10:00
jubb 0ed7b28b6b refactor: performance experiments 2021-07-29 17:02:58 +10:00
Harris ff853e01b4 fix: notifications deduplicate based on last message ID, ConversationActivityV2.kt updates notification by thread ID 2021-07-21 13:58:07 +10:00
Harris 7f047f1c2b feat: add mention only icon, trying to figure out non-repeating push notifications 2021-07-20 17:34:07 +10:00
Harris b95cb2bedb feat: add notification types for all / mentions only or none with UI and push logic 2021-07-20 16:06:59 +10:00
jubb 5f7278b9c4 refactor: OpenGroupPollerV2.kt no longer queues jobs and executes synchronously, BackgroundPollWorker.kt no longer replaces periodic tasks but keeps existing ones, removing unused references 2021-07-15 12:00:30 +10:00
jubb 6a2a04e256 feat: don't show notifications on HomeActivity.kt 2021-07-13 16:31:16 +10:00
Niels Andriesse dc790560fd Clean & debug 2021-07-09 13:56:38 +10:00
Niels Andriesse 9d447608da Re-organize files 2021-07-09 13:25:57 +10:00
Niels Andriesse c984d90b04 Re-organize files 2021-07-09 13:18:48 +10:00
Niels Andriesse a9b5c269f6 Re-organize files & delete unused code 2021-07-09 11:14:21 +10:00
Niels Andriesse 6ce37a6231 Remove unused code 2021-07-07 13:03:48 +10:00
Niels Andriesse 4cec9e684f Fix crash 2021-07-01 09:31:30 +10:00
Niels Andriesse 764a885280 Hook up new conversation screen everywhere 2021-06-30 14:57:53 +10:00
Niels Andriesse 851f4c5cf7 Send read receipts 2021-06-25 10:18:04 +10:00
nielsandriesse e1f3362c2a Fix crash 2021-05-31 13:13:25 +10:00
Niels Andriesse 5d9957a57d Fix merge 2021-05-24 16:21:24 +10:00
ryanzhao 25df4330be Merge branch 'dev' of https://github.com/oxen-io/session-android into fix-open-group-spam 2021-05-24 14:49:56 +10:00
Niels Andriesse e7ae08fe7a Clean 2021-05-24 10:27:31 +10:00
Ryan ZHAO d52787a661 try to use jobs to mark if all open groups are caught up 2021-05-21 14:55:06 +10:00
Ryan ZHAO 6822bc461c new approach for batch notification 2021-05-20 15:41:17 +10:00
Ryan ZHAO b2827184a8 extend the debouncer timeout 2021-05-20 14:43:22 +10:00
ryanzhao f13b5ab9d7 fix open group spam 2021-05-19 17:01:53 +10:00
nielsandriesse 7ba116c1df Switch to new open group manager 2021-05-19 11:12:29 +10:00
Niels Andriesse 6243443262 Move files 2021-05-18 16:11:38 +10:00
Niels Andriesse 4078a9c4b5 Move files 2021-05-18 16:03:47 +10:00
Niels Andriesse dc8938c269 Move protos 2021-05-18 09:44:06 +10:00
Niels Andriesse a88322a033 Move files 2021-05-18 09:12:33 +10:00
Brice-W b562aa5738 set notification text 2021-05-13 15:59:24 +10:00
jubb b685846d7e Merge remote-tracking branch 'upstream/dev' into origin/refactor-sending
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/loki/database/LokiAPIDatabase.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/ExpirationTimerUpdate.kt
#	libsession/src/main/java/org/session/libsession/messaging/opengroups/OpenGroupMessage.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroup.kt
2021-03-18 09:26:13 +11:00