645 Commits

Author SHA1 Message Date
jubb
53127b69de refactor: compile errors and refactoring to view binding 2022-02-08 12:04:55 +11: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
jubb
07ccc2696b Merge remote-tracking branch 'upstream/dev'
# Conflicts:
#	app/build.gradle
2022-02-07 17:08:48 +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
Harris
983e4f59d3 Fix unrecycled delete actions (#836)
* fix: set view press/swipe/long press to null if message is deleted

* fix: deselects messages once they've been deleted
2022-02-06 12:41:35 +11:00
jubb
aa892ba8ca Merge remote-tracking branch 'upstream/master' into rtc_calls
# Conflicts:
#	app/build.gradle
2022-01-24 10:05:35 +11:00
Harris
c70de069a4 fix: checking invalid profileKey lengths on message receive and retrieve profile avatars 2022-01-23 00:33:38 +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
ceokot
c113a447cf refactor: Use view binding to replace Kotlin synthetics (#824)
* refactor: Migrate home screen to data binding

* Add view binding

* Migrate ConversationView to view binding

* Migrate ConversationActivityV2 to view binding

* View model refactor

* Move more functionality to the view model

* Add ui state events flow

* Update conversation item bindings

* Update profile picture view bindings

* Replace Kotlin synthetics with view bindings

* Fix qr code fragment binding and optimize imports

* View binding refactors

* Make TextSecurePreferences an interface and add an implementation to improve testability

* Add conversation repository

* Migrate remaining TextSecurePreferences functions into the interface

* Add unit conversation unit tests

* Add unit test coverage for remaining view model functions
2022-01-14 07:56:15 +02:00
jubb
d7dbd71568 refactor: used shared number for BatchMessageReceiveJob.kt parameter across pollers 2021-12-20 10:18:08 +11:00
jubb
045d1f5027 Merge remote-tracking branch 'upstream/dev' into rtc_calls
# Conflicts:
#	app/build.gradle
2021-12-20 09:38:13 +11:00
ceokot
44f5684b21 feat: Update open group avatars periodically (#807)
* feat: Update open group avatars periodically

* Updated timestamp

* Existing job check

* Refresh avatar on the conversation

* Remove println statement

* Update profile picture on recipient modified event
2021-12-15 08:11:55 +02:00
jubb
7eae1404c5 feat: add silenced notifications for call notification builder. check pre-offer and connecting state for pending connection 2021-12-13 16:53:42 +11:00
jubb
6a5f12959e Merge branch 'dev' into rtc_calls
# Conflicts:
#	app/src/main/res/values/strings.xml
2021-12-13 13:18:17 +11:00
ceokot
15f5ac10ec feat: Add conversation pinning (#806)
* feat: Add conversation pinning

* Update pinned conversation icon

* Update pinned conversation column name
2021-12-10 10:18:56 +11:00
jubb
522c5cd520 refactor: prevent calls from non hasSent participants 2021-12-07 16:09:58 +11:00
Harris
a3dfd1dd0c feat: add first call notification 2021-11-24 17:10:20 +11:00
Harris
d6823d88e6 refactor: handle in-thread call notifications better and replace deny button intent with denyCallIntent instead of hangup 2021-11-24 11:57:23 +11:00
jubb
f05487f925 feat: adding call messages for incoming/outgoing/missed 2021-11-23 17:59:02 +11:00
jubb
c863df2a60 Merge branch 'dev' into rtc_calls
# Conflicts:
#	app/build.gradle
2021-11-23 14:33:17 +11:00
jubb
f7f3883250 docs: fix comment on time being 300s (5m) instead of 30s 2021-11-23 11:20:02 +11:00
jubb
b55d0ad270 fix: treat result as number and convert to Long 2021-11-23 09:49:01 +11:00
jubb
5fbace70b5 feat: handle discarding pending calls from linked devices 2021-11-22 16:58:28 +11:00
Harris
276f808ca3 fix: bluetooth auto-connection and re-connection fixes, removing finished todos, allowing self-send call messages for deduping answers 2021-11-18 16:19:09 +11:00
Harris
98a50cbf69 feat: add call related permissions and more network handover tests 2021-11-17 12:51:15 +11:00
jubb
3d0e5541d0 feat: ringers and better state handling 2021-11-12 12:21:05 +11:00
jubb
99b6a38b90 feat: call establishing and displaying 2021-11-10 11:57:03 +11:00
jubb
de4d8e9be4 feat: adding more command handlers in WebRtcCallService.kt 2021-11-04 17:14:07 +11:00
jubb
a3cfd7f03b feat: update kotlin and add in call view model and more management functions 2021-10-28 12:08:02 +11:00
jubb
ea9b35f229 Merge branch 'dev' into rtc_calls
# Conflicts:
#	app/build.gradle
2021-10-28 10:14:26 +11:00
jubb
f2f906fd3e refactor: closed groups delete for yourself and handle unsend request if it's from yourself or author now 2021-10-27 17:26:44 +11:00
Harris
97de286896 feat: update to utilise call ID 2021-10-22 08:52:57 +11:00
Harris
50c2ac60d7 Merge remote-tracking branch 'upstream/dev' into rtc_calls
# Conflicts:
#	app/build.gradle
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/jobs/AvatarDownloadJob.java
#	app/src/main/java/org/thoughtcrime/securesms/jobs/RetrieveProfileAvatarJob.java
2021-10-21 14:19:20 +11:00
Harris
f56a16b31d refactor: remove pubkey logs from poller log spam and move attachment download job to rx queue 2021-10-06 13:56:13 +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
c5bd866e8e Merge branch 'dev' into rtc_calls
# Conflicts:
#	app/build.gradle
2021-09-21 14:53:03 +10:00
Harris
45a6e11cf5 fix: checking if group exists and not adding it for self sends.
may require more testing to see if it can return in the groupExists block above insert outgoing messages

fixes #723
2021-09-15 16:09:54 +10:00
Harris
f6eafccd7b Merge remote-tracking branch 'upstream/dev' into rtc_calls 2021-09-13 14:01:31 +10:00
Harris
459dfa72c2 feat: hanging up and bottom sheet behaviors should work now 2021-09-06 17:06:03 +10:00
Harris
b3576336d9 feat: add stats and starting call bottom sheet 2021-09-06 09:15:48 +10:00
Harris
adeffbdc07 feat: replace hardcoded with const string 2021-09-02 10:21:14 +10:00
Harris
ded0370e8e feat: add gif metadata warning 2021-09-02 10:19:43 +10:00
Harris
9e5e137919 feat: added basic call functionality 2021-08-30 16:39:47 +10:00
ryanzhao
ecc881bc7c store server hash value for incoming messages 2021-08-17 14:34:49 +10:00
ryanzhao
29e355c6ab send unsend request as sync message 2021-08-16 14:03:06 +10:00
ryanzhao
4ce1bd6875 clean 2021-08-16 11:59:52 +10:00
ryanzhao
feff1c8393 fix cancel notification 2021-08-16 10:58:07 +10:00
ryanzhao
f10ddb8e3a cancel notification for unsend request 2021-08-16 10:34:28 +10:00
ryanzhao
9ab285c3be handle home screen update for unsend request 2021-08-12 14:14:37 +10:00
ryanzhao
5264d4e2f8 remove weird white space 2021-08-11 15:12:10 +10:00