Commit Graph

1416 Commits

Author SHA1 Message Date
jubb 6fa398f480 Merge branch 'master' into calls
# Conflicts:
#	app/build.gradle
2022-02-09 14:36:52 +11:00
jubb a002e3e1f7 build: update build numbers 2022-02-09 14:27:44 +11:00
Harris b01075cef6
fix: add UI test for URL modal dialog and fix mention infinite layout inflation bugs (#841) 2022-02-09 14:18:22 +11:00
jubb 542ff110be build: increase build number 2022-02-08 13:46:28 +11:00
jubb bf7a6e7b54 fix: set the content to binding.root view 2022-02-08 13:36:49 +11:00
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 561ce83aa4
Fix quote alignment (#837)
* refactor: use constraints in quote view

* refactor: layouts for quotes fixed

* fix: use the current text, which may be the type of attachment instead of the quote body
2022-02-07 15:38:07 +11:00
Harris d4424481b1
fix: documents render correctly now (#838) 2022-02-07 15:25:31 +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 26e3159399 build: update build.gradle number 2022-01-24 10:26:18 +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
Ian Macdonald 46aebb168c
Make the unread message count 4 digits instead of 2. (#827)
* Make the unread message count 4 digits instead of 2.

99+ unread messages can be reached within an hour in some busy open
groups. 4 digits allow for much more accurate reporting.

* Improve appearance of unread counter by using rounded rectangle.
2022-01-18 22:32:20 +11:00
Harris bd5a324ad8
Split image from replies (#779)
* refactor: VisibleMessageContentView.kt re-using layouts instead of instantiating every bind to fix alignment and constraint issues for splitting thumbnails and body

* refactor: constraint works for sms only records, adjust other components of the visible message content accordingly

* feat: link previews and quotes now wrap content or align according to media type

* refactor: move back to emojitextview for body

* fix: add some padding at the bottom of the quote

* fix: voice message view not rendering properly

* fix: set visibility to false for each message content view on recycle event

* fix: untrusted attachments

* fix: compile issues and small UI improvement
2022-01-18 14:33:04 +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
ceokot 366b5abdc8
Enable media gallery fullscreen mode (#813)
* feat: Enable fullscreen mode on the media gallery screen

* Move `fitsSystemWindows` attribute to root view

* Rename for clarity

* Update fullscreen flag

* Set system bars behaviour for api >= 30
2021-12-20 09:38:27 +02:00
jubb fa4f0809ac fix: bug fixes for self-send answer / hangup messages 2021-12-20 14:30:46 +11:00
jubb 49f2c5f6f0 fix: glide in update crash 2021-12-20 11:56:54 +11:00
jubb ac7ba51817 build: update build number 2021-12-20 09:47:12 +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
jubb 8ea0690e3a fix: remove sh-rHR strings due to localisation error 2021-12-17 15:07:53 +11:00
jubb 87045b1d55 build: update build number and versio nname 2021-12-17 11:03:16 +11:00
Harris 164937aaa3
Remove the read and typing indication on startup (#812)
* fix: remove the read and typing indication

* fix: set default value in preferences_app_protection.xml
2021-12-17 10:19:32 +11:00
Harris 28b97e45cc
Remove ID copy interactions (#811)
* fix: remove selected session ID interactions

* fix: include thread ID in home activity's creation of user details bottom sheet

* refactor: use bundleOf builder instead of old bundle put value methods
2021-12-16 06:47:26 +02: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
Harris 5601da0e22
fix: replace alpha update with isVisible to not intercept tap from message gestures (#809) 2021-12-15 08:01:35 +02:00
jubb b4769926ca refactor: remove whitespace 2021-12-15 15:32:13 +11:00
jubb 81ff600114 Merge remote-tracking branch 'upstream/dev' into rtc_calls 2021-12-15 11:54:41 +11:00
Harris 34569ff1da
build: update translations with latest values (#808) 2021-12-15 10:45:25 +11:00
jubb c83dc6700a build: update build number 2021-12-14 16:38:23 +11:00
jubb cfbe09d106 fix: remove wrap content for renderers and look more at recovering from network switches 2021-12-14 16:21:23 +11:00
jubb b0d1afdd72 fix: text color uses overridden style value 2021-12-14 11:12:32 +11:00
jubb 7b239c48a5 build: update build number 2021-12-13 16:56:57 +11: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 9da5d5ad5e build: new version 2021-12-08 17:44:36 +11:00
jubb f1783b3f80 refactor: use answerCall instead of manual intent building again 2021-12-08 17:44:23 +11:00
jubb 9c21cfa7b8 fix: remove end call from busy 2021-12-08 17:30:05 +11:00
jubb 38a8738674 fix: various bug fixes for calls 2021-12-08 17:29:10 +11:00
jubb 44b2a9d412 refactor: replace timeout schedule with a seconds count 2021-12-08 11:23:35 +11:00
jubb 681c195826 Merge remote-tracking branch 'upstream/dev' into rtc_calls 2021-12-08 10:16:33 +11:00
jubb 38231b543c build: update gradle code 2021-12-07 16:13:22 +11:00
jubb 522c5cd520 refactor: prevent calls from non hasSent participants 2021-12-07 16:09:58 +11:00
ceokot c25795fa53 fix: Include empty open groups in the conversation list query 2021-12-07 06:39:31 +02:00
jubb 75efd7b21a refactor: add wantsToAnswer ability in pre-init for fullscreenintent 2021-12-07 15:17:28 +11:00
jubb ef79eb4bb2 refactor: aspect ratio fit preserved 2021-12-07 13:36:34 +11:00
jubb ba590909df fix: crash on view with a parent already attached 2021-12-07 11:32:58 +11:00
jubb 02feba25d2 refactor: wrapper use corrected session description, set title to recipient displayName, indicate session calls 2021-12-07 11:10:17 +11:00
jubb ca0f8c5d7d Merge remote-tracking branch 'upstream/dev' into rtc_calls
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/ControlMessageView.kt
2021-12-07 09:52:58 +11:00
jubb 2966dc00ab refactor: testing out the full screen intents 2021-12-06 18:11:26 +11:00
ceokot ba51102b6d Add message date break extension function to reduce duplication 2021-12-06 06:34:32 +02:00
ceokot a966623db2 Add conversation constants file 2021-12-06 06:07:46 +02:00
jubb acb4f1d466 refactor: change the call time to update every second 2021-12-06 09:35:33 +11:00
ceokot bfe91427ab fix: Add date breaks on control messages 2021-12-03 08:50:19 +02:00
jubb c4fe558673 feat: adding a call time display 2021-11-30 17:35:12 +11:00
jubb c31d8d0e74 refactor: replace call icons 2021-11-29 16:16:10 +11:00
jubb 7c76613e14 build: remove debuggable for release build 2021-11-29 12:02:31 +11:00
jubb f9b560d3d5 refactor: move start ringer and init of audio manager to CallManager.kt and string fix up 2021-11-29 11:57:27 +11:00
jubb 644213ea32 refactor: more bluetooth improvements 2021-11-26 17:12:30 +11:00
jubb 787fefc237 refactor: change the call logos in control messages 2021-11-25 17:23:48 +11:00
jubb e8400c375b refactor: set the buttons to match iOS in terms of enable disable and colours 2021-11-25 16:58:01 +11:00
Harris a3dfd1dd0c feat: add first call notification 2021-11-24 17:10:20 +11:00
Harris e876dc3ebd feat: process microphone enabled events and remove debuggable from build.gradle 2021-11-24 16:04:50 +11:00
Harris 2ae2d1610f feat: add a hangup via data channel message 2021-11-24 14:18:15 +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 0ba9e4938d build: increase build number 2021-11-23 14:10:42 +11:00
jubb 48b3a5038c feat: add signing props to release config build 2021-11-23 09:26:44 +11:00
jubb 5fbace70b5 feat: handle discarding pending calls from linked devices 2021-11-22 16:58:28 +11:00
Harris 51e7109649 build: build numbers and version name update 2021-11-19 16:13:22 +11:00
Harris 6100111b3b refactor: discard offer messages from non-matching pre-offers we are already expecting 2021-11-19 16:09:11 +11:00
Harris 8e56f76fc1 feat: add pre-offer information and action handling in web rtc call service 2021-11-19 16:04: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 2029874e26 build: update build number for testing 2021-11-18 09:50:58 +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
Harris ad9cd8b231 fix: don't display call option in conversation and don't show notification if option not enabled 2021-11-17 14:22:33 +11:00
Harris 98a50cbf69 feat: add call related permissions and more network handover tests 2021-11-17 12:51:15 +11:00
jubb bf74483b9f feat: add fixes to bluetooth and begin the network renegotiation 2021-11-15 18:02:55 +11:00
jubb b6c53b4964 feat: updating call layout 2021-11-12 17:07:39 +11:00
jubb 3d0e5541d0 feat: ringers and better state handling 2021-11-12 12:21:05 +11:00
jubb 3684457280 fix: fixing call connect flows 2021-11-10 17:44:23 +11:00
jubb 99b6a38b90 feat: call establishing and displaying 2021-11-10 11:57:03 +11:00
jubb 2e973146a3 feat: some connection and service launching / ring lifecycle 2021-11-09 17:15:22 +11:00
jubb 3e4bab678b fix: add timestamp to incoming call 2021-11-08 17:36:37 +11:00
jubb a0e604dbaf feat: hooking up calls and fixing broken dependencies and compile errors 2021-11-08 17:32:25 +11:00
jubb 3755315b4c feat: adding remainder of basic functionality to services and CallManager.kt 2021-11-05 16:35:40 +11:00
jubb f069d35b14 feat: more commands handled, adding lock manager and bluetooth permissions 2021-11-05 14:36:25 +11:00
jubb de4d8e9be4 feat: adding more command handlers in WebRtcCallService.kt 2021-11-04 17:14:07 +11:00
jubb 5cff5ffb45 feat: adding more lifecycle vm and callmanager / call service functionality 2021-11-04 12:07:06 +11:00
jubb 2e3f46ff9f feat: implementing more WebRtcCallService.kt functions and handlers for actions as well as lifecycle 2021-11-03 17:09:21 +11:00
jubb 1af9b8ba46 feat: plugging CallManager.kt into view model and service, fixing up dependencies 2021-10-29 16:41:01 +11:00
jubb 71bb04cb34 refactor: moving call code around to service and viewmodel interactions 2021-10-28 17:06:14 +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