Commit Graph

1790 Commits (398b5bf7b42b28b4afa213c8d8944b578004ba38)

Author SHA1 Message Date
andrew bcf925c132 Cleanup 11 months ago
0x330a 2e3d50364c fix: issue for overwriting local config with an outdated user config merge 11 months ago
andrew a27f81db30 Fix Huawei push notifications 11 months ago
0x330a 8db92cc55c
feat: add user config integrated into config sync 11 months ago
andrew cc6f880665 ... 11 months ago
0x330a 06c0ab3080 refactor: let frontend use the normal types and enabled options properly set 11 months ago
andrew 41d24ef2c3 ... 11 months ago
andrew 7ee9b14247 Fix PNModeActivity DI 11 months ago
Andrew cd1a52399e Increase activity_home_outdated_client_config text size to 11sp 11 months ago
0x330a bcb2071f44
fix: compile issues and dependencies resolved to use shared configs throughout apps 11 months ago
0x330a 19083e2ce7 refactor: use the shared config expiry mode types instead of custom protobufs so we can remove a variable and simplify checks across two variables 11 months ago
0x330a 7f4db64a5a
refactor: refactor ExpirationConfigurationDatabase to return a specific db config after removing config values that are in shared lib 11 months ago
andrew d1e22ca369 Fix 11 months ago
0x330a 87d76b21da
refactor: moving radio indexes out of expiration configuration 11 months ago
andrew 7be1f092f9 More Huawei stuff 11 months ago
0x330a 0e30d14b96
refactor: start looking at how to incorporate the user config changes to the expiry message update times and where to read values from 11 months ago
andrew 4738c9b4f9 Fix v2 11 months ago
andrew d3ea4e2e30 Fix 11 months ago
0x330a 2acb7b5169 refactor: remove unused parameter 11 months ago
0x330a 41c05b1e67 fix: compile issues and deprecate java for kotlin lint 11 months ago
Andrew 55216875ac Connect Huawei push notifications 11 months ago
0x330a 7f7971e47f Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/res/layout/activity_conversation_v2_action_bar.xml
11 months ago
andrew 34990b13d3 ... 11 months ago
0x330a 36df2b37df Merge remote-tracking branch 'origin/disappearing-messages' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/MessageRequestResponse.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
11 months ago
andrew 01e9d15872 Add Huawei flavor 11 months ago
andrew 58cda9ba4a Fix website 11 months ago
andrew 002793baed Merge branch 'dev' into add-unregister 11 months ago
andrew fbb2172739 Fix buttons 12 months ago
andrew d0415c5bf1 Merge branch 'dev' into comp 12 months ago
andrew b25f0e6d27 Move voice below quote in message view 12 months ago
andrew 47d1c657f3 Enable reply with attachment 12 months ago
andrew fc8a92998c Fix message clipping 12 months ago
0x330a 68248db83c fix: compile errors to build 12 months ago
0x330a 74ee433eec fix: more merge conflict compile issues 12 months ago
andrew 452db6dfa3 Make reply safer 12 months ago
andrew 9a84f6c67b Merge branch 'dev' into comp 12 months ago
0x330a 07e1d80654 Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	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/database/MmsDatabase.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/SmsDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseComponent.kt
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseModule.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/ClearAllDataDialog.kt
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/java/org/thoughtcrime/securesms/service/ExpiringMessageManager.java
#	app/src/main/res/layout/activity_conversation_v2.xml
#	libsession/src/main/java/org/session/libsession/database/StorageProtocol.kt
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageReceiver.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/snode/SnodeAPI.kt
#	libsignal/protobuf/SignalService.proto
#	libsignal/src/main/java/org/session/libsignal/utilities/Snode.kt
12 months ago
hjubb e7608763a0 fix: tests pass with forcing config 12 months ago
0x330a ac18f1cbfe
Integrate shared libsession-util library (#1096)
* feat: add some config db basics and DI for it, make the user profile optional, start looking at integrate building from initial dump

* update: get latest util library submodule update

* refactor: fix compile for refactored API

* refactor: naming consistent with library

* feat: add in config storage and injection to common places, managing lifecycle of native instances

* refactor: config database changes, new protos, adding in support for config base namespace queries

* refactor: config query and store use the same format as other platforms

* feat: add batch snode calls and try to poll from all the config namespaces

* fix: add optional namespace in signature and params

* feat: add raw requests for modifying expiry and getting expiries

* feat: add some base config migration logic, start implementing wrappers for conversation and expiry types

* chore: update libsession base

* feat: start integrating conversation wrapper functions

* feat: add basic conversation info volatile types and implementations, start working on tests

* feat: more common library wrapper implementation and test

* fix: tests and compile issues

* fix: fix tests, don't use iterables

* feat: add all iterators and tests

* feat: add in more config factory for volatile

* feat: update request responses and their appropriate processing

* feat: add storage with hashes and some basic profile update logic in config factory probably move that somewhere else

* feat: adding config sync functionality, refactoring jobs to execute in suspend context to do some nice coroutine execution

* refactor: moving some properties around so we have access in libsession

* feat: expand on the config sync job, finish basic implementation to test against

* feat: add forced config sync

* feat: syncs the user profile stuff for now, and errors back to placeholder instead of unknown recipient

* feat: add basic message read logic for synchronizing last reads, need to modify the query to use the last seen instead of the unread count in a subquery possibly for thread display record

* feat: add broken unreads everywhere

* fix: unreads work now for incoming messages, need to sync conv volatile properly still

* feat: batching poll responses properly and handling groups properly

* fix: replace the mark read receiver (from notifications) to use the new set last seen mark read logic

* feat: update to the group list branch

* fix: compile errors from updating library to use latest branch, now requires cmake 3.22.1

* fix: fix the contact tests

* fix: getters weren't getters properly in the config factory, fixed new onboarding from configs

* feat: add the last seen

* feat: start adding user groups wrapper objects

* refactor: add more else branches for unimplemented types

* feat: buffer the last read when in conversation

* feat: add basic contact logic for setting local contact state. Need to implement handling properly

* refactor: trying to just include blocked status for now in updating contacts

* fix: add some more contact syncing: nicknames, approved statuses, blocked statuses

* feat: start implementing hashes in shared lib and refactoring

* feat: start to implement group list info classes and wrappers and refactor to use library based hashes

* feat: incorporate hashes from library, more wrapper for user groups and serialization from c++

* feat: adding more serialization changes for community base info and user groups LGC

* feat: adding more serialize deserialize to legacy closed groups

* feat: finish serial/deserial helper

* feat: just implement deserialize community info

* refactor: refactor tests and wrappers to use less pointers, finish implementing user groups API

* feat: finish latest wrappers fix tests and continue building default generation functions. refactor defaults to be used if no stored data blob in DB

* feat: more usergroup functionality, storage functionality for checking pinned status, adding pinned status for NTS/contacts, move community info parse full url to base community, add StorageProtocol logic for group info

* feat: adding user groups to the list of user configs, refactorign some of the config factory to fetch the user configs easier. Add handling for polling user group namespace

* feat: implement the default user config list

* feat: add user group config handling

* chore: extra missed existing group

* refactor: use existing lookup for objects in wrappers so they don't overwrite missing values

* feat: add contacts expiry serialization/deserialization, more LGC, timestamps to add closed group encryption info (for latest tracking)

* refactor: change how expiration timer works for contacts, set the expiration timer for those conversations in handling contact configs

* feat: add expiration updates via config for contacts as well

* feat: add almost all group editing cases, need to hook into the thread deletion for groups in the user groups

* feat: open group joining should work now

* feat: add groups to configs for push

* fix: handling user group updates bug fix for closed groups instead of all groups

* fix: open group sync persistence

* feat: add in activity finish if recipient no longer exists (deleted thread) from sync

* feat: support avatar removal from shared library

* feat: support thread deletion and refactoring a lot of getOrCreateThread references to go via storage or assume they are correctly set to hook into the contact and volatile creation during thread creation

* fix: database update not deleting in certain circumstances, storage persisting and removing the volatile convo info for thread deletion / creation, NTS hidden getter values in shared library

* refactor: make update listener visibility package

* refactor: update kotlin

* feat: update dependencies and support outdated config messages, refactor config factory to return null configs if new configs not supported

* feat: update shared library to use priority only, fix compile errors, fix group member sync problem

* fix: compile error

* fix: profile avatar fixes for local user now that we aren't setting local user profile key

* Revert "fix: profile avatar fixes for local user now that we aren't setting local user profile key"

This reverts commit 3f569e3403.

* refactor: let the local number update recipient details in profile manager

* fix: don't recreate thread after leaving

* fix: fix up the duplicate thread creation in the message receive handler

* fix: fix the placeholder rendering on new messages, add in extra context logging for adding contacts and preventing new thread creation on new messages of various types

* feat: add test theme for xml layout previews

* feat: add shortened hex for session IDs throughout, replace nullable getName with null in underlying contacts for individual contacts, build shared lib with release mode, remove todo, fix broken unit test

* feat: setup android unit tests for verifying storage behaviours and state of shared configs

* feat: adding dependencies to try and get android tests working, fixing bug with initial config not syncing properly

* fix: remove hilt testing, add spy on app context storage field instead, update libsession-util to fixed sodium cmake branch

* refactor: use PR version of libsession-util to test cmake build

* fix: new build on normal repo

* feat: new libsession util commit

* refactor: remove the old custom build libsodium stuff from cmake

* feat: update libsession module

* fix: add legacy config subscription to the home activity to enable showing banner at any time

* fix: pinned status for communities and groups, group last read time being set to snodeapi.now on finish joining

* fix: some open group volatile convo fix for last read timer being set. Need to investigate further

* fix: prevent blocking local number

* fix: adding in more checks for open group inbox recipients before being saved to the shared configs. Prevent sending typing indicator for blocked users

* fix: add blocked check for read receipt and updating expiring messages

* fix: another contact recipient config library call removed for non-standard IDs

* fix: another ID check

* fix: don't process thread creation for user is sender && recipient (sync message) for message request responses

* refactor: mark as read on open and use less buffer time

* fix: finally fix the darn unread count issue by

* fix: removing debug logs, adding failure error handling logs for expiry message updater, properly using the message thread ID created for the expiring messages. Process the non-thread messages properly with await in BatchMessageReceiveJob

* fix: checking the last read open to message and make sure that scroll behaviour matches expected, fix the config sync job not deleting ALL old hashes only latest

* refactor: try to add a retry logic to config sync job in case of snode failure

* build: update submodule

* fix: remove user notifications for leaving group to prevent synced device issues, don't create thread in messages for new closed groups, includei nactive groups in the deletion queries for merging group configs

* feat: use blinded message count for banner also

* refactor: remove some logging, don't use blinded conversations in the list

* fix: don't set the read flag in update notifications, some roundabout logic for first loads and scrolling to last known positions

* refactor: merge changes, re-add the group check in unapproved messages

* fix: re-poll on fail in case that was breaking anything

* fix: pinning groups and notifying list listeners in threadDb.setPinned

* feat: add in TTL extension subrequest and builder, enable extending TTLs for all latest config messages in poll as subrequest

* feat: add block to the delete all message requests, only if they're not open group inbox contacts

* refactor: disable edit text for non contacts

* refactor: let the user display name return "You" for local user

* fix: prevent NTS self create thread on user view bind

* refactor: remove populate public key cache if needed call which seems unnecessary at that point, maybe UserView refs have changed since 2020

* refactor: use just first visible instead of completely visible, merge message sender changes

* fix: prevent block of users in delete all

* fix: self sync sync message failures for default values

* feat: update libsession-util, adjust docs, update mms and sms to use message sent timestamp instead of -1 for last read in the thread

* fix: some compile issues in tests and some TODOs for things to do before merge

* fix: handle recyclerview scrolled on scroll to first unread if it's the first load

* fix: added more migration code for deleting unnecessary threads and groups, fixed a post-migration last seen issue on last item (current read is now), comment out actual network sync while testing migrations

* feat: adding a force new configs flag and logic for timestamp handling / forced configs, fix issue with handling legacy messages

* refactor: re-add the sending of configs

* fix: don't add contacts if they don't exist in the profile manager

* [wip]
fix: trying to consolidate prof pic and key properly

* feat: add logs and fix compile issue with a themes.xml entry, add removing profile picture into logic for profile manager

* fix: force has sent for local user, only prevent setting last seen for open group recipients, allow empty user pics to trigger config sync in settings

* fix: nts threads

* fix: open group avatar loop for open groups we have left

* feat: add a wrapper hash to track home diff util changes for wrapper contact recipient info, add test for dirty state in double set

* feat: add a dump in there as well

* refactor: more test code refactor

* fix: update last seen if later than current

* fix: open group threads and avatar downloads

* fix: add max size and maybe fix the non-200 sub requests for batches (for 421s in particular)

* fix: open group comparison issues potentially, have to update some more outgoing message open group flags for visibility of details etc

* Updated to the latest libSession-util

* Updated logic to delete legacy groups when kicked/left

* Added the legacy group 'joined_at' value

* Replaced incorrect character in JNI

* Fixed an issue where the group keyPair was getting encoded incorrectly

* Updated the code to ignore outdated legacy group control message changes

* Updated the code to ignore messages invalidated by the config

* [Review] Updated the poller to process config messages before standard

* Cleaned up the outdated message logic

* Fixed inverted config dropping flags

* Fixed an issue where the joining a community would read all messages

Stopped using a reversed RecyclerView in all cases (caused the unread issue)
Updated the logic to jump to the newly sent message when sending a message (to be consistent with other platforms)
Updated the logic to refresh the DB unread count when the cursor receives an update

* Updated the conversation to highlight the first unread message on open

* Fixed a couple of bugs with the highlighting

* Fixed a bug where the user profile picture wasn't downloading correctly

* feat: add all namespaces to delete all messages request and signature verification data

* fix: merge namespace hashes for signature returned and

* fix: import correct scroll to bottom

* build: update version code and name

* fix: initial contact generation fix for existing blinded contacts

* fix: initial convo generation fix for existing blinded convos (?)

* fix: conversation unread not doing a check for standard ID prefix

* fix: thread ID not being created for legacy config messages

* fix: don't treat 404 as bad snode

* fix: don't add retrieve profile job if we have one for that address

* build: update build code

* fix: reduce attempts for downloading image, invert unreachable type check

* fix: attempting to fix preventing message processing if group thread is not active for closed groups and initial contact dump only allows conversations with thread, may need further optimisations though

* feat: Added an unread marker and search result focus highlighting

* fix: empty set in appropriate places for current closed groups

* build: update build version code

* fix: fix the notifications and request at appropriate time

* refactor: remove debug logging for thread create and delete

* build: update build number

* fix: new community doesn't break persisting config if the .add request fails

* build: trying to track down broken retrieve avatar job

* feat: update to latest libsession dev

* fix: maybe fix avatar download for new messages

* fix: 404s causing snode errors and trying to retrieve avatars that have already 404'd a lot

* fix: closed group creation sets thread date to formation timestamp

* build: update version code

* build: update version code

* build: remove debuggable release build

* fix: use new permissions for external attachments

* build: update version code

* chore: remove debug logs

* fix: tests and main thread blocking db fetch for path status view

* wip: trying to track down failure to mark conversation as read in delayed group add

* wip: add more logs for initial last Read sync of communities

* wip: maybe the volatile is being updated with 0 on batch message receive?

* fix: maybe syncing read statuses are working now

* chore: remove debug logs

* build: update build number

* fix: trying to improve performance

* fix: add close to banner

* refactor: hide seed reminder in preview

* build: update build number

* fix: maybe requires update thread no matter what

* fix: message request banner shows again

* fix: android tests work again and permissions

* fix: blocked contacts click handler being overridden by something

* Revert "fix: blocked contacts click handler being overridden by something"

This reverts commit 608572fc42.

* build: update build number

* refactor: remove unused dependencies and update minor for sqlcipher

* fix: actually do insert contact, because otherwise name doesn't get set properly

* fix: maybe fix scroll to bottom issue

* build: update build number

* fix: the message time and jump to message queries are more optimized

* fix: maybe fix the last seen issues

* build: update build number

* fix: pfp broken closed groups why

* fix: add admins and members as member list instead of just members

* fix: exclude lgc without membership > 1 and inactive explicitly

* fix: submodule update

* fix: compiles with removal of iterator erase

* fix: unread indicator updates properly in ConversationActivityV2

* fix: unread notifications clear and altered if any notifications exist (prevents clearing read notifications in conversation or on home screen)

* refactor: profile pictures kinda broken

* build: update build number

* refactor: remove full hash from log

* fix: isPinned threadDB call

* refactor: use mutex in all libsession native calls, change timestamp

* refactor: add basic support for blinded v2 prefixes

---------

Co-authored-by: Morgan Pretty <morgan.t.pretty@gmail.com>
12 months ago
andrew adfa94614b Merge branch 'dev' into utilise-dialog-dsl 12 months ago
andrew c3ef4d6e7b Merge branch 'dev' into utilise-dialog-dsl 12 months ago
andrew d83532b6af Use Channel and Flow to avoid duplicate events 12 months ago
andrew 1845b60dac Refactor slide out of MessageDetailsActivity 12 months ago
andrew 172f85ae4f Fix some edge cases in fileDetails 12 months ago
andrew fb68aaede6 Cleanup Components imports 12 months ago
andrew 09b321530d Add strings 12 months ago
andrew a1e8ad2c37 Cleanup ViewModel 12 months ago
andrew 821327569e Cleanup Themes 12 months ago
andrew b26c98af68 Hide Resend if no error 12 months ago
andrew 0824713ac5 Fix theming and polish 12 months ago
andrew bbc9cdfeeb Cleanup ViewModel 12 months ago
andrew d8b85768d2 Fix sms messages 1 year ago
andrew e5b19d4ea4 Fix incorrect recipient used as threadRecipient to launch MediaPreview 1 year ago
andrew fc87ae18f5 Fix message padding 1 year ago
andrew 1d1977ca7a Make expand button clickable 1 year ago
andrew c417b37236 Hide thumbnails 1 year ago
andrew 8be1e8e87e Wire up voiceMessageView 1 year ago
0x330a 4c9a237d87
fix: compile errors 1 year ago
andrew 68684bb839 Refactor VisibleMessageContentView#onContentClick 1 year ago
andrew efb5b27191 Fix divider color 1 year ago
0x330a 325abe020a Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	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/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/notifications/AndroidAutoReplyReceiver.java
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/res/layout/activity_conversation_v2_action_bar.xml
#	app/src/main/res/layout/expiration_dialog.xml
#	app/src/main/res/menu/menu_conversation_expiration.xml
#	app/src/main/res/menu/menu_conversation_expiration_on.xml
#	app/src/main/res/values/strings.xml
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/MessageRequestResponse.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/IncomingMediaMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/IncomingTextMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/OutgoingMediaMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
#	libsession/src/main/java/org/session/libsession/snode/OnionRequestAPI.kt
#	libsession/src/main/java/org/session/libsession/snode/SnodeAPI.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
1 year ago
andrew 8d66d948ca Polish 1 year ago
andrew d6b1440217 Refactor MessageDetailsViewModel 1 year ago
andrew 7cd2bd0e0d Cleanup 1 year ago
andrew 6209ae68a8 Cleanup 1 year ago
andrew ee0141f82d Refactor to Components 1 year ago
andrew f82ed7718d Cleanup CarouselButton 1 year ago
Andrew 7da3e4f022
Fix blocked contacts button (#1264) 1 year ago
andrew 26aed783e8 Fix Divider padding 1 year ago
andrew 6890f5c448 Add image click listener 1 year ago
andrew d719660030 Add expand button 1 year ago
andrew 0fcd997290 Fix divider color 1 year ago
andrew 70e63a23bc Fix indicator colors 1 year ago
andrew 0ec93e4b36 Refactor CarouselButtons 1 year ago
andrew 1d29b5465f Refactor prev and next buttons 1 year ago
andrew db4ff94084 Add prev and next buttons to carousel 1 year ago
andrew 1902d4755c Add pager indicator 1 year ago
Stefan Junker ba4143c298
feat: increase voice recording limit to 5m (#1201) 1 year ago
andrew 1303979cdf Add image attachments 1 year ago
andrew 4decce9dde Add images 1 year ago
andrew d44dbe089f Wire up buttons 1 year ago
andrew 351b259449 Add error 1 year ago
andrew 19b2c5ef97 Fix LiveDataTestUtil 1 year ago
andrew f68c01b2ee Populate profile pic 1 year ago
andrew 92fae3d6bf Add ProfilePictureView to MessageDetailActivity 1 year ago
andrew 876e12c411 Refactor ProfilePictureView 1 year ago
andrew 6d596226b3 Add user info 1 year ago
Andrew c039eb89bc
Fix debug screen security default (#1256) 1 year ago
andrew 676c29ca60 Add click listeners 1 year ago
andrew ac476f4382 Add icons and respect nullability 1 year ago
andrew d5b3d9bcf9 Improve theming 1 year ago
andrew 0c2682fe47 Improve compose theming 1 year ago
andrew fc108b34db Create Message Details screen 1 year ago
andrew ab8b2c42b9 Add jetpack compose 1 year ago
andrew 97297508f4 Simplify ExpirationDialog 1 year ago
andrew 20eac67761 simplify 1 year ago
andrew 4ee8dc712e Fix + button in rationale dialog 1 year ago
andrew b46b52ace4 Merge branch 'dev' into utilise-dialog-dsl 1 year ago
andrew 8be088ad56 Reinstate v1 PNServerJob 1 year ago
andrew e3f60eb5f2 Fix individual group subs 1 year ago
andrew 42cfce0c3e Refactor v1 and v2 1 year ago
andrew 0e0ab9151e cleanup 1 year ago
andrew 5c9dc36460 Merge branch 'dev' into add-unregister 1 year ago
Andrew b9f24bc4bd
Add button downstates to appearance settings screen (#1224) 1 year ago
Andrew 92a6447b8a
Add button downstates throughout (#1220) 1 year ago
andrew 667af27bfb Utilise TokenManager and ExpiryManager 1 year ago
andrew 153aa4ceaa Reinstate push v1 1 year ago
andrew 440a5a942d Merge branch 'dev' into utilise-dialog-dsl 1 year ago
Andrew cc015c45bd
Add 50 dp buffer to isScrolledToBottom (#1228) 1 year ago
andrew be4d742e84 Unregister v1 push 1 year ago
andrew 01d80ae54b cleanup PushNotificationAPI 1 year ago
andrew 3f6229f841 Remove PushNotificationManager 1 year ago
andrew ba6eca2443 Add FirebasePushManager#unregister 1 year ago
Morgan Pretty 026b994664
Merge pull request #1238 from oxen-io/fix/modal-backgrounds
Fix broken modal styling from 1.16.8
1 year ago
Morgan Pretty 80104f6db8 [SES-627] Fixed an issue where the DocumentView could run off the screen 1 year ago
Morgan Pretty 7699e47f7b Responded to PR comments 1 year ago
Morgan Pretty 11c1fd382d Fixed a few issues with the OpenGroupPoller
Fixed an issue where the admin/moderator status wasn't getting stored if set before joining a community
Fixed an issue where multiple pollers for the same server could run at the same time when joining multiple rooms within the same app run (very noticeable when restoring/linking)
1 year ago
andrew 1efda68334 Merge branch 'dev' into utilise-dialog-dsl 1 year ago
Morgan Pretty 22a30f1907 Fixed the MediaSendFragment progress dialog 1 year ago
Morgan Pretty 082c087105 Added the custom dialog windowBackground back (fix permission dialogs) 1 year ago
Morgan Pretty 9ce89087a5 Updated the dialog dim amount to match the style guide 1 year ago
Morgan Pretty cea65f3e45 Fixed an issue where a bunch of dialog backgrounds were missing 1 year ago
Morgan Pretty 31608111b3 Merge remote-tracking branch 'upstream/master' into dev 1 year ago
Morgan Pretty 7f7ab63d15
Merge pull request #1164 from RyanRory/bluetooth-manager-crash
Fix crash & ANRs
1 year ago
Morgan Pretty f1686ea260
Merge pull request #1236 from bemusementpark/fix-dialog-theme-background
Fix dialog theme to set windowColor and not background of every view
1 year ago
andrew e5db7fc886 Fix dialog theme so it sets window color and not background of every child view 1 year ago
Morgan Pretty 9d5fa1239c Commented out the plus button on the replace profile modal 1 year ago
Morgan Pretty 346bdc1774 Merge remote-tracking branch 'upstream/dev' into bluetooth-manager-crash 1 year ago
Morgan Pretty 6c14ed26e2
Merge pull request #1229 from bemusementpark/fix-long-message
[SES-571] Fix long message not visible on react
1 year ago
Morgan Pretty f21100eff7 [SES-569] Merge branch 'fix-pic' into bluetooth-manager-crash 1 year ago
andrew a6cfe5817d Change unset profile pic in dialog 1 year ago
Morgan Pretty c92ef09d09 [SES-570] Fixed an issue where quotes weren't using their quoted message media 1 year ago
andrew e99133fd8b Fix back button background in light themes 1 year ago
andrew 09b241ba67 Fix dialog#view(layoutRes) 1 year ago
Morgan Pretty 1980113e41 [SES-566] Fixed an issue where the blocked state wasn't syncing 1 year ago
andrew 94b48d5fb9 Utilise dialog dsl in DeleteMediaPreviewDialog 1 year ago
andrew 975f9fc4d1 Utilise dialog dsl in DeleteMediaDialog 1 year ago
andrew 033eabbc53 Utilise dialog dsl in SettingsDialog 1 year ago
andrew 4641512644 Utilise dialog dsl in RationaleDialog 1 year ago
Morgan Pretty 2b7bd7417e [SES-567] Fixed a couple of issues where the Group poller would be stopped during creation 1 year ago
andrew cbe90e7bfc Cleanup ConversationReactionOverlay 1 year ago
andrew 6d528d0e92 Fix long message not visible on react 1 year ago
andrew 72c07f4b99 Utilise dialog dsl in PrivacySettingsPreferenceFragment 1 year ago
andrew 80f21aeb41 Convert PrivacySettingsPreferenceFragment to Kotlin 1 year ago
andrew c5f821add0 Utilise dialog dsl in ExpirationDialog 1 year ago
andrew 50271685af Utilise dialog dsl in MuteDialog 1 year ago
andrew 623cfde8b1 Utilise dialog dsl in CallToggleListener 1 year ago
andrew 391735dc28 Convert CallToggleListener to Kotlin 1 year ago
andrew 4e92c40210 Remove BaseDialog and utilise dialog DSL 1 year ago
andrew 1d8d678047 Make kotlin code use dialog dsl 1 year ago
andrew 4ee68cbbb1 Utilise dialog dsl 1 year ago
andrew 1b88d4f950 Utilise dialog dsl 1 year ago
Morgan Pretty 9b7fb3dd86 Removed the JobDatabase since it's no longer used 1 year ago
Morgan Pretty b7744f4f2d Addressed PR feedback 1 year ago
Morgan Pretty c77d465438 Merge remote-tracking branch 'upstream/dev' into bluetooth-manager-crash
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupExporter.kt
#	app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupImporter.kt
1 year ago
Morgan Pretty 0c2a635d03 Merge remote-tracking branch 'upstream/dev' into bluetooth-manager-crash 1 year ago
Morgan Pretty 10af2815ac
Merge pull request #1176 from bemusementpark/sync-everything
Synchronize usage of Cipher
1 year ago
Andrew e8d26222b9
Fix scroll to bottom button visibility (#1219) 1 year ago
andrew 0af713317a Merge branch 'dev' into sync-everything 1 year ago
Morgan Pretty 22ed2dd8aa
Merge pull request #1205 from bemusementpark/disable-unblock
Disable unblock button
1 year ago
Morgan Pretty d541f395a5
Merge pull request #1213 from bemusementpark/fix-id-divider-color
Fix ID divider color
1 year ago
andrew 03aa19aae4 . 1 year ago
Andrew 5519f17775
Truncate session id when displayed as username (#1215) 1 year ago
Andrew 331d523c45
Improve notification content dialog (#1211) 1 year ago
Andrew 47d5b242ca
Fix share button color (#1212) 1 year ago
Andrew 1b231bfff3
Fix dialog button style (#1214) 1 year ago
Andrew 945df19aef
Fix radio button selection transition (#1209) 1 year ago
Andrew 95a165aa05
Fix TabLayout ripple (#1210) 1 year ago
andrew 55dd62240a Fix size & space 1 year ago
andrew ff124b8edc Fix ID divider color 1 year ago
andrew a295dfb248 Cleanup 1 year ago
andrew 8b39c4e56a polish 1 year ago
andrew 76466e57de Fix ripple 1 year ago
andrew 4f2ef7f2af Add SelectableItem<> 1 year ago
andrew 8ef6ec2125 . 1 year ago
Andrew d505109aa3
Merge branch 'dev' into disable-unblock 1 year ago
Andrew a8e77659b3
Add remove avatar 1 year ago
Andrew 8f55ac93f8
Fix accept button color 1 year ago
Andrew 6fc7b3591e
Fix ripple color 1 year ago
andrew 30d748e147 Disable unblock button 1 year ago
Jason Rhinelander 46acd7878d
New SPNS subscription and notifications
Finishes the WIP for subscribing to push notifications and handling the
new-style pushes we get.
1 year ago
andrew 235b94a905 Fix ripple color 1 year ago
Andrew f64fe4b652
Fix device notification settings preference color 1 year ago
andrew 8c5ff1f944 Fix dialog button color 1 year ago
andrew a334b8912a Fix device notification settings preference color 1 year ago
Andrew ab3caf8ab5
Fix message entrance coordinates 1 year ago
Andrew 44cb8fec2c
Remove reply from context menu when you can't write 1 year ago
Andrew e6dc5f2128
Fix links not working when message is partially offscreen 1 year ago
Andrew fef2948f58
Fix scroll to bottom button position when input not visible 1 year ago
Andrew 57476cd56e
Fix scroll to bottom button always visible if last item is taller than RecyclerView 1 year ago
Andrew ba9dab33c5
Synchronize Cipher in KeystoreHelper 1 year ago
Andrew aadba75038
Add sync status message 1 year ago
Andrew 84004d2fdb
Swallow exceptions in ScreenshotObserver 1 year ago
Andrew 910ab8874e
Remove laid out check before drawToBitmap 1 year ago
ryanzhao a7e0bd5366 Merge branch 'dev' into bluetooth-manager-crash 1 year ago
ryanzhao 88e788a406 clean 1 year ago
Andrew 8dbabec4e7
Fix send after approval message (#1178)
* Fix send after approval message

* Fix logic

* Utilise isLocalNumber
1 year ago
Andrew 2b00729df3
Fix message request button overlap (#1188) 1 year ago
Andrew ba3566f7e8
Fix approval text position when input bar is gone (#1181) 1 year ago
ryanzhao 89545f0406 further clean up 1 year ago
andrew d20c27d6d3 Remove laid out check before drawToBitmap 1 year ago
andrew 4469d9754a Fix bubble entrance coordinates 1 year ago
andrew c8fa2d8d6e Remove reply from context menu when you can't write 1 year ago
ryanzhao fa71ea1850 make RetrieveProfileAvatarJob work 1 year ago
andrew 8d38d1c0fb Fix links not working when message is partially offscreen 1 year ago
Ryan Zhao b494088c3d WIP: further refactor on old jobs 1 year ago
andrew b6667b83ce Fix scroll to bottom button position when input not visible 1 year ago
andrew f0715f16e0 Fix scroll to bottom button always visible if last item is taller than RecyclerView 1 year ago
Ryan Zhao 2ceb9e2bf4 clean up old job manager 1 year ago
Ryan Zhao 2b48b52df0 remove unused jobs and wrap up old job refactoring 1 year ago
andrew ec2abffdcc Remove logs 1 year ago
andrew e9a15941ae Fix colors 1 year ago
ryanzhao 375815c719 WIP: refactor on jobs using old job table 1 year ago
andrew 6a5d97a0f0 Fix something 1 year ago
andrew a9078c8d08 ...and the rest 1 year ago
andrew a152250a60 Add comments 1 year ago
andrew 24741fcc22 Synchronize Cipher in KeystoreHelper 1 year ago
andrew d3ce899a80 Synchronize all Cipher#doFinal 1 year ago
andrew 45eb3549f6 Add sync status message 1 year ago
ryanzhao d868021f0a move job running status from database to memory 1 year ago
ryanzhao 7a14c3f8be Merge branch 'dev' into bluetooth-manager-crash 1 year ago
Andrew 99cb10f5be
Add send approval message (#1157) 1 year ago
Andrew 83b6002a27
Fix emoji misalignment (#1155) 1 year ago
Andrew a934c5c2e2
Fix missing media progress (#1151) 1 year ago
Andrew 70aab2994b
Refactor MmsDatabase (#1169) 1 year ago
Ryan Zhao 2630c97a4e add where clause for marking all jobs pending to reduce the time for writing to db 1 year ago
ryanzhao bd4f451513 Merge branch 'dev' into bluetooth-manager-crash 1 year ago
andrew 58e532f0ec Swallow screenshot exceptions 1 year ago
Andrew Gallasch ffef98ecc9
Fix LandingActivity textColor (#1159) 1 year ago
Andrew Gallasch 5d552a7f93
Remove unnecessary api version checks in WindowUtil (#1163) 1 year ago
Andrew Gallasch 716fc1f4fa
Add SafeViewPager to fix touch exception in MediaPreviewActivity (#1166) 1 year ago
Andrew Gallasch 7d33177e06
Fix status and nav bar colors (#1165) 1 year ago
Ryan Zhao c7bbdb778b minor refactor 1 year ago
Ryan Zhao 51856138e3 refactor on SignalAudioManager 1 year ago
0x330a d2e80c3157
feat: re-add bencode utility and fix tests to use bytearray instead of assuming utf-8 encoding for strings 1 year ago
0x330a 7762d534bb
feat: add no op push manager for de-googled 1 year ago
0x330a 8d4f2445f2
feat: add support for firebase and split out google services as a dependency for only the play version of the app. Add support for requests in new pn server 1 year ago
0x330a 2246a5d9ce feat: introduce new pns models and wire kotlinx serialization to apply in libsession 1 year ago
Andrew Gallasch 63d442584c
Fix empty message behind media message (#1150) 1 year ago
SzBenedek2006 7b0c014791
Fix hungarian translations (#1140) 1 year ago
0x330a b25eb9af8e
Use new seed node certificates (#1144)
* fix: use new seed node certificates

* refactor: don't need to include subdomains actually
1 year ago
wafflesvsfrankie 9ad73139b6
Add accessibility tags (#1054)
* adding accessibility id to new conversation button

* adding accessibility ids and strings for testing

* updating id tags for new conversation buttons

* accessibility tags for create contact test

* adding ids for message requests, config message, requests banner and conversation view

* adding more tags to settings page

* adding tags to different resolutions for landing page

* updating display name in settings to include accessibility id

* found some stashed changes which i forgot about

* more stashed changes

* adding tags to layout sw400dp

* closed group testing, delete/unsend message testing and selecting contacts tag

* adding tags for message body, selecting contacts for group creation, deleted message config, unsend message modal, and trash icon

* added tags for disappearing messages menu option, time selector, clock icon, confirm of change (ok)and control message

* add test for block user

* docs: Adding in accessibility ID's for Appium testing

* accessibility tags for conversation options, profile picture/settings and block options

* Add content descriptions for better accessibility

* Add more content descriptions

* Add timer icon content description

* Update profile picture content description

* Adding accessibility ids to new conversation creation screen and to message notification settings

* fix: content descriptions in their correct places and prevent a crash

* build: update build number

* build: update build number

* Adding back in FrameLayout, making changes as request

* Fixed viewPager move

* Fixing changes as requested by Jubb

* Adding content descriptions to mentions list, voice message settings, link preview permissions, closed group menu and slow mode notifications option

* Adds content descriptions to blocked contacts heading in conversations settings, individual contacts in blocked contacts page and to empty message requests folder

* Adds content descriptions to empty message request folder and text input box for username on settings page

---------

Co-authored-by: charles <charles@oxen.io>
Co-authored-by: hjubb <hjubb@users.noreply.github.com>
1 year ago
hjubb 2a2f90276d Merge branch 'master' into dev 1 year ago
Morgan Pretty eb739bdc9b
ANR Defensive Coding (#1132)
* Made a number of changes to try and improve background ANRs

Added some more logs to the BatchMessageReceiveJob (to make it easier to track a specific job)
Shifted the ConversationActivity adapter initialisation to run on a background thread to reduce the hang when opening a conversation
Updated the ConversationViewModel to cache the recipient and openGroup values to avoid accessing the database unnecessarily
Updated the code to just stop all current closed group pollers instead of fetching a list to stop
Updated the PN registration to be triggered in an AsyncTask
Updated the call code to unregister a couple of additional receivers
Updated the background poller so it waits for 15 mins before running and doesn't replace the existing scheduler (allows for PNs to trigger explicit background polling)
Fixed an issue where we were sending push notifications which were too large and likely to fail as a result (non-pre-offer call messages)
Fixed an issue where a failing Open Group poller could prevent the background poller from receiving and processing DMs

* Updated to a more coroutine-y convention
1 year ago
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
1 year ago
Float-hu a062e1c2b2
Update zh-rCN strings.xml (#1129) 1 year ago
Morgan Pretty 391418ae1e
Merge pull request #1107 from mpretty-cyro/fix/group-avatar-download-job-duplication
Fixed a few issues related to the GroupAvatarDownloadJob
1 year ago
Morgan Pretty c8846bc31a
Merge pull request #1118 from mpretty-cyro/feature/add-copy-to-long-press-menu
Add ‘Copy community URL’ to the long-press menu
1 year ago
Morgan Pretty 5bd188387b
Merge pull request #1112 from mpretty-cyro/fix/link-preview-layout-issues
Fixed a few layout issues with the LinkPreviewView
1 year ago
Morgan Pretty cc7a80900f Added copy session id and community url to the conversation long press menu 1 year ago