Commit Graph

53 Commits

Author SHA1 Message Date
0x330a eaddc44de1
feat: adding support for new closed groups, moving closed groups to be legacy throughout app 2023-08-24 17:38:14 +10:00
0x330a ff057d7110 Merge remote-tracking branch 'upstream/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/MediaOverviewActivity.java
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationViewModel.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/MessageDetailActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/ThreadDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseModule.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/BlockedContactsViewModel.kt
#	app/src/main/res/drawable/profile_picture_view_large_background.xml
#	app/src/main/res/layout/dialog_download.xml
#	app/src/main/res/layout/view_untrusted_attachment.xml
#	app/src/main/res/values/strings.xml
#	app/src/test/java/org/thoughtcrime/securesms/util/OpenGroupMigrationTests.kt
#	libsession/src/main/java/org/session/libsession/database/StorageProtocol.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt
#	libsession/src/main/java/org/session/libsession/utilities/bencode/Bencode.kt
#	libsession/src/main/java/org/session/libsession/utilities/recipients/Recipient.java
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
#	libsignal/src/main/java/org/session/libsignal/utilities/IdPrefix.kt
2023-08-23 16:45:24 +10:00
andrew fbb2172739 Fix buttons 2023-07-21 11:50:42 +09:30
andrew d83532b6af Use Channel and Flow to avoid duplicate events 2023-07-11 13:28:44 +09:30
andrew 1845b60dac Refactor slide out of MessageDetailsActivity 2023-07-11 12:28:04 +09:30
andrew 172f85ae4f Fix some edge cases in fileDetails 2023-07-11 01:30:03 +09:30
andrew 09b321530d Add strings 2023-07-10 16:09:38 +09:30
andrew a1e8ad2c37 Cleanup ViewModel 2023-07-10 13:01:46 +09:30
andrew 821327569e Cleanup Themes 2023-07-10 01:05:09 +09:30
andrew b26c98af68 Hide Resend if no error 2023-07-10 00:35:13 +09:30
andrew 0824713ac5 Fix theming and polish 2023-07-10 00:12:42 +09:30
andrew d8b85768d2 Fix sms messages 2023-07-07 10:46:43 +09:30
andrew e5b19d4ea4 Fix incorrect recipient used as threadRecipient to launch MediaPreview 2023-07-06 22:39:54 +09:30
andrew fc87ae18f5 Fix message padding 2023-07-06 15:48:31 +09:30
andrew 1d1977ca7a Make expand button clickable 2023-07-06 15:32:51 +09:30
andrew c417b37236 Hide thumbnails 2023-07-06 15:23:58 +09:30
andrew 8be1e8e87e Wire up voiceMessageView 2023-07-06 15:20:45 +09:30
andrew 68684bb839 Refactor VisibleMessageContentView#onContentClick 2023-07-06 13:09:00 +09:30
andrew 8d66d948ca Polish 2023-07-04 22:10:48 +09:30
andrew d6b1440217 Refactor MessageDetailsViewModel 2023-07-04 15:27:00 +09:30
andrew 7cd2bd0e0d Cleanup 2023-07-04 15:11:40 +09:30
andrew 6209ae68a8 Cleanup 2023-07-04 14:56:35 +09:30
andrew ee0141f82d Refactor to Components 2023-07-04 14:09:40 +09:30
andrew f82ed7718d Cleanup CarouselButton 2023-07-04 13:26:26 +09:30
andrew 26aed783e8 Fix Divider padding 2023-07-04 11:34:20 +09:30
andrew 6890f5c448 Add image click listener 2023-07-04 09:31:14 +09:30
andrew d719660030 Add expand button 2023-07-03 21:25:59 +09:30
andrew 0ec93e4b36 Refactor CarouselButtons 2023-07-03 18:30:15 +09:30
andrew 1d29b5465f Refactor prev and next buttons 2023-07-03 17:41:30 +09:30
andrew db4ff94084 Add prev and next buttons to carousel 2023-07-03 17:19:33 +09:30
andrew 1902d4755c Add pager indicator 2023-07-03 13:00:11 +09:30
andrew 1303979cdf Add image attachments 2023-07-03 10:35:50 +09:30
andrew 4decce9dde Add images 2023-07-01 17:41:33 +09:30
andrew d44dbe089f Wire up buttons 2023-06-30 22:49:23 +09:30
andrew 351b259449 Add error 2023-06-30 13:25:16 +09:30
andrew f68c01b2ee Populate profile pic 2023-06-30 11:35:22 +09:30
andrew 92fae3d6bf Add ProfilePictureView to MessageDetailActivity 2023-06-30 11:07:27 +09:30
andrew 876e12c411 Refactor ProfilePictureView 2023-06-30 11:01:57 +09:30
andrew 6d596226b3 Add user info 2023-06-30 10:33:56 +09:30
andrew 676c29ca60 Add click listeners 2023-06-30 09:48:48 +09:30
andrew ac476f4382 Add icons and respect nullability 2023-06-29 22:11:15 +09:30
andrew d5b3d9bcf9 Improve theming 2023-06-29 19:14:47 +09:30
andrew 0c2682fe47 Improve compose theming 2023-06-29 17:11:11 +09:30
andrew fc108b34db Create Message Details screen 2023-06-29 11:37:55 +09:30
Morgan Pretty 5e28af2be4
Updated the code to use the network offset time everywhere relevant (#1111)
* Updated the code to use the network offset time everywhere relevant

* Updated the SnodeAPI.nowWithOffset to use @JvmStatic
2023-03-31 10:11:30 +11:00
0x330a cf27760d01
Merge remote-tracking branch 'upstream/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/MediaGalleryAdapter.java
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/SessionContactDatabase.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/res/values/strings.xml
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
2023-01-25 14:17:22 +11:00
0x330a cdd2559839
Paged conversation recycler, update compile sdk version 31 (#1049)
* Update build tools

* Update appcompat version

* Update dependencies

* feat: add paging into conversation recycler and queries to fetch data off-thread

* refactor: wip for updating paged results and bucketing messages / fetching enough to display

* fix: currently works for scrolling and possibly refreshing? need scroll to message and auto scroll down on insert (at bottom)

* fix: search and scrolling to X message works now

* build: increase version code and name

* fix: re-add refresh, remove the outdated comment

* refactor: lets see if 25 size pages increases performance 👀

* feat: add in some equals overrides for mms records to refresh if media has finished DLing

* feat: add scroll to bottom for new messages if we are at the end of the chat

* build: update build numbers

* fix: update AGP and fix compile errors for sdk version 31

* feat: add log for loki-avatar and loki-fs on upload types and responses

* feat: increase build number to match latest installed version

* feat: changing props and permission checks for call service

* fix: possible service exception when no call ID remote foreground service not terminated

* revert: google services version

* fix: re-add paging dependency

* feat: adding new last seen function and figuring out the last seen for recycler adapter

* build: update version names and codes for deploy

* refactor: undo the new adapter and query changes to use previous cursor logic. revert this commit to enable new paged adapter

* fix: use author's address in typist equality and hashcode for set inclusion

* refactor: refactor the select contacts activity

* refactor: refactor the select contacts activity

* build: update version code

* fix: hide all other bound views if deleted

* refactor: change voice message tint, upgrade build number

* fix: message detail showing up properly

* revert: realise copy public key is actually not allowed if open group participant

* fix: copy session ID, message detail activity support re-enabled

* build: update build version code

* build: remove version name

* build: update build code

* feat: google services version minimum compatible

* fix: selection for re-created objects not properly highlighting

* fix: foreground CENTER_INSIDE instead of just CENTER for scaletype

* build: update version code

* fix: don't show error if no error

* build: update version code

* fix: clear error messages if any on successful send

Co-authored-by: charles <charles@oxen.io>
2022-12-19 11:29:05 +11:00
0x330a f1305856ad refactor: replace Storage references with StorageProtocol 2022-11-11 15:29:39 +11:00
Harris d2dc86de88
Fix moderator race condition (#975)
* fix: race condition in clear all / add new members

* fix: max width emoji text view on smaller devices

* fix: add extra widths and reduce the original again

* fix: quoted messages for blinded servers, remove unused add group member function

* fix: quote sending and resending using blinded IDs in quotes

* build: update build number
2022-09-26 11:44:59 +10: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