Commit Graph

44 Commits

Author SHA1 Message Date
Harris aef101f1e5
fix: only send message if the up position is contained in the button's rectangle, to prevent sending if dragged away (#887) 2022-05-18 16:30:12 +10: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
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
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
Harris 13dc28231d fix: respect the incognito flag in the user's preferences 2021-10-11 14:38:10 +11:00
jubb 9cb7d9ece8 fix: conversation activity now receives extra text shared via intent and accepts content shared by IME 2021-07-12 15:44:46 +10:00
Niels Andriesse c984d90b04 Re-organize files 2021-07-09 13:18:48 +10:00
Niels Andriesse ca85044a7b Fix crash 2021-07-08 09:21:18 +10:00
jubb 21c0537432 fix: pass original missing to the quote view to prevent image with no content rendering 2021-07-05 16:52:56 +10:00
Niels Andriesse 93a417d322 Fix closed group quote handling bug 2021-07-01 11:27:52 +10:00
Niels Andriesse 7352dac638
Merge pull request #623 from hjubb/ui
Make Input Bar Edit Text Capitalize Sentences
2021-06-30 15:07:03 +10:00
jubb 8eb4da34d4 fix: capitalize sentences 2021-06-30 14:58:27 +10:00
Niels Andriesse 07de201fde Hide input if the user isn't part of a group 2021-06-30 14:05:30 +10:00
Niels Andriesse dbedc5039a Implement image quoting 2021-06-29 14:05:32 +10:00
Niels Andriesse fcdd3d9149 Fix quote clearing bug 2021-06-28 16:03:41 +10:00
Niels Andriesse 12b008c61c Send quotes & link previews 2021-06-28 13:29:17 +10:00
Niels Andriesse 489516b03b Hook up all voice message recording controls 2021-06-28 11:26:13 +10:00
Niels Andriesse 0da2487401 Send voice messages 2021-06-28 11:11:29 +10:00
Niels Andriesse bf80f5c449 Re-implement attachment sending 2021-06-28 10:00:18 +10:00
Niels Andriesse 6140be6e56 Add back mentions business logic 2021-06-25 14:42:04 +10:00
Niels Andriesse cc98ab5c9f Send typing indicators & fix missing mention handling 2021-06-25 11:11:03 +10:00
Niels Andriesse ec9df3adb2 Fix crash & add documentation 2021-06-25 09:19:21 +10:00
Niels Andriesse 2132e53fb0 Hook up cancel link preview draft button 2021-06-24 16:30:16 +10:00
Niels Andriesse fe8b0c9798 Create link preview draft view 2021-06-24 16:23:37 +10:00
Niels Andriesse c181dfec81 Clean & add documentation 2021-06-23 13:57:13 +10:00
Niels Andriesse 0291171fb8 Fix quote view sizing 2021-06-23 11:32:05 +10:00
Niels Andriesse e674f70155 Drafts 2021-06-22 16:23:47 +10:00
Niels Andriesse 48df733773 Basic quote view attachment handling 2021-06-21 14:24:00 +10:00
Niels Andriesse ce5f923b25 Adapt quote view for use in messages 2021-06-21 10:53:52 +10:00
Niels Andriesse 2aaacbd029 Debug 2021-06-18 16:24:56 +10:00
Niels Andriesse 9471db76c2 Fix height change handling 2021-06-18 16:04:22 +10:00
Niels Andriesse 123cd6d486 Handle text only quote drafts 2021-06-18 15:54:24 +10:00
Niels Andriesse 9419bafe93 Add preliminary quote draft view 2021-06-18 15:11:41 +10:00
Niels Andriesse efc752e3a1 Add mention candidates view 2021-06-18 11:00:52 +10:00
Niels Andriesse f4621a4fee More animation 2021-06-17 16:29:57 +10:00
Niels Andriesse 7cacee8499 More animation 2021-06-17 10:53:56 +10:00
Niels Andriesse 5ae201b81b Add basic voice message recording UI 2021-06-16 14:50:41 +10:00
Niels Andriesse eac0a87e40 Add send button 2021-06-16 10:39:24 +10:00
Niels Andriesse 871bafe66d Debug 2021-06-16 09:51:50 +10:00
Niels Andriesse 196fc25902 Make input edit text grow dynamically 2021-06-15 16:14:35 +10:00
Niels Andriesse 5755f4150a Implement InputBarButton 2021-06-15 14:05:32 +10:00
Niels Andriesse acc472bbad Add ripple 2021-06-15 13:01:05 +10:00
Niels Andriesse f8ea8cbd03 Implement placeholder input bar layout 2021-06-15 09:42:18 +10:00