Commit graph

7719 commits

Author SHA1 Message Date
Harris
6649a9a745
Generate placeholder avatars from two characters, re-fetch missed avatars (#856)
* feat: splitting names in the avatar generation

* fix: re-fetch avatars if initial downloads fail

* fix: remove shadowed name, add tests for common labels
2022-03-15 09:24:15 +11:00
jubb
11d49426d3 fix: approval for more fine-grained contacts on migrate 2022-03-10 16:29:44 +11:00
Harris
c458d4a359
Fix approved references and visible message setting flags for approval (#854)
* fix: set approved on new outgoing threads, use approved more deeply and invalidate the options menu on recipient modified. Add approvedMe flag toggles for visible message receive

* fix: add name update in action bar on modified, change where approvedMe is set

* fix: text colours and attachment approve requests

* refactor: text color for share screen

* Restart conversation loader on message request approval

Co-authored-by: ceokot <ceokot@gmail.com>
2022-03-10 09:54:18 +11:00
Harris
a67195c6cf
Treat first sync closed groups as base for restoring device (#855)
* feat: only sync closed groups on initial sync

* fix: flip first sync bit
2022-03-09 17:48:31 +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
Harris
55aa266769
Bug fixes and provide conversation tooltips (#851)
* refactor: removing unused strings and changing session header dimensions

* refactor: remove bodyTextView from LinkPreviewView.kt and changing header image colours

* fix: path layout is aligned, global search input should always prompt soft input on open

* fix: unread count and scroll to bottom button visibility properly taking into account adapter item count and RecyclerView.NO_POSITION

fixes #848

* fix: crash on error toast for failing to share logs

* feat: conversation tooltips in NewConversationButtonSetView.kt

* fix: UI issue for conversation action bar cutting off lower than baseline characters

fixes #839

* refactor (wip): replacing bindings with nullable types to try prevent mystery bug

* refactor: use the nullable bindings for ConversationActivityV2.kt and remove inputBarHeightChanged

* fix: remove recipient listener on destroy

* build: add latest strings and increase build
2022-02-28 17:23:58 +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
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
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
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
Harris
34569ff1da
build: update translations with latest values (#808) 2021-12-15 10:45:25 +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
Harris
546a6ec3f7
Merge pull request #805 from ceokot/fix_open_group_trimming
fix: Include empty open groups in the conversation list query

Fixes #802
2021-12-08 10:16:02 +11:00
ceokot
c25795fa53 fix: Include empty open groups in the conversation list query 2021-12-07 06:39:31 +02:00
Harris
6a11c0d375
Merge pull request #804 from ceokot/fix_control_message_date_breaks
fix: Add date breaks on control messages
2021-12-06 17:40:22 +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
ceokot
bfe91427ab fix: Add date breaks on control messages 2021-12-03 08:50:19 +02:00
jubb
0ba9e4938d build: increase build number 2021-11-23 14:10:42 +11:00
Harris
2c3ec423bc
Merge pull request #800 from hjubb/fix_open_group_requests
Fix open group requests
2021-11-23 14:07:05 +11:00
jubb
b55d0ad270 fix: treat result as number and convert to Long 2021-11-23 09:49:01 +11:00
jubb
19384eeb5b build: increase build number 2021-10-27 17:42:13 +11:00
Harris
a1b2e79108
Merge pull request #772 from hjubb/activate_unsends
Activate un-sending messages
2021-10-27 17:34:45 +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
00d6ce76b5 fix: contacts without stored profile information display similar to closed groups for unsend 2021-10-19 11:13:15 +11:00
Harris
0b062074b1 feat: switch unsend flag 2021-10-19 10:33:15 +11:00
Harris
f87fb2b9bb
Merge pull request #767 from hjubb/incognito_keyboard
Use incognito keyboard based on privacy preference in app
2021-10-13 22:33:52 +00:00
Harris
b925133a76
Merge pull request #769 from hjubb/fix_npe_conversation_list_handler
Fix a crash with null conversationListHandler
2021-10-13 22:16:02 +00:00
Harris
0755f0b953 fix: conversationListNotificationHandler initialized in getter if null and removed from onCreate 2021-10-12 14:32:06 +11:00
Harris
13dc28231d fix: respect the incognito flag in the user's preferences 2021-10-11 14:38:10 +11:00
Harris
e8a2bbe76d fix: saving log external instead of session blob 2021-10-08 16:43:45 +11:00
Harris
a55c9a969b refactor: replace settings string for sharing logs, change extension to .txt to make things easier 2021-10-08 14:01:13 +11:00
Harris
3997fcebc2 refactor: output appropriate file names for the apks 2021-10-08 11:07:26 +11:00
Harris
8f4a5c7469 Merge remote-tracking branch 'upstream/dev' 2021-10-08 10:57:34 +11:00
Harris
8a2a80e9e1 build: increase build number 2021-10-08 10:49:09 +11:00