Commit Graph

815 Commits (7738b19760cda9f3152f80c893d034b0c00928f2)

Author SHA1 Message Date
andrew 667af27bfb Utilise TokenManager and ExpiryManager 2 years ago
andrew 153aa4ceaa Reinstate push v1 2 years ago
Andrew cc015c45bd
Add 50 dp buffer to isScrolledToBottom (#1228) 2 years ago
andrew 288b70bb14 Store legacy fcm token to reduce unregister api calls 2 years ago
andrew b2a1b5fe46 Add token to FCM logs 2 years ago
andrew be4d742e84 Unregister v1 push 2 years ago
andrew 01d80ae54b cleanup PushNotificationAPI 2 years ago
andrew 3f6229f841 Remove PushNotificationManager 2 years ago
andrew ba6eca2443 Add FirebasePushManager#unregister 2 years ago
Morgan Pretty 7699e47f7b Responded to PR comments 2 years 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)
2 years ago
Morgan Pretty 2b7bd7417e [SES-567] Fixed a couple of issues where the Group poller would be stopped during creation 2 years ago
Morgan Pretty 8ce6e997aa Fixed a potential crash after changing a property to be nullable 2 years ago
Morgan Pretty b7744f4f2d Addressed PR feedback 2 years 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
2 years ago
Morgan Pretty 0c2a635d03 Merge remote-tracking branch 'upstream/dev' into bluetooth-manager-crash 2 years ago
Morgan Pretty 10af2815ac
Merge pull request #1176 from bemusementpark/sync-everything
Synchronize usage of Cipher
2 years ago
Andrew e8d26222b9
Fix scroll to bottom button visibility (#1219) 2 years ago
andrew 0af713317a Merge branch 'dev' into sync-everything 2 years ago
Morgan Pretty 22ed2dd8aa
Merge pull request #1205 from bemusementpark/disable-unblock
Disable unblock button
2 years ago
Andrew 5519f17775
Truncate session id when displayed as username (#1215) 2 years ago
Andrew 7d31af9eb0
Fix isScrolledToBottom (#1217) 2 years ago
0x330a 95bb9ee441
refactor: remove some unnecessary code for legacy PN registration 2 years ago
andrew 30d748e147 Disable unblock button 2 years 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.
2 years ago
Andrew 57476cd56e
Fix scroll to bottom button always visible if last item is taller than RecyclerView 2 years ago
ryanzhao fa71ea1850 make RetrieveProfileAvatarJob work 2 years ago
Ryan Zhao b494088c3d WIP: further refactor on old jobs 3 years ago
andrew f0715f16e0 Fix scroll to bottom button always visible if last item is taller than RecyclerView 3 years ago
andrew ec2abffdcc Remove logs 3 years ago
andrew d3ce899a80 Synchronize all Cipher#doFinal 3 years ago
andrew 45eb3549f6 Add sync status message 3 years ago
0x330a d2e80c3157
feat: re-add bencode utility and fix tests to use bytearray instead of assuming utf-8 encoding for strings 3 years 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 3 years ago
0x330a 2246a5d9ce feat: introduce new pns models and wire kotlinx serialization to apply in libsession 3 years ago
0x330a b25eb9af8e
Use new seed node certificates (#1144)
* fix: use new seed node certificates

* refactor: don't need to include subdomains actually
3 years 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
3 years 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
3 years ago
Ian Macdonald 405b8c7d28
Allow user display names of up to 64 bytes. (#981) 3 years 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
3 years ago
Morgan Pretty 9fd68d27f8 Fixed a few issues with the GroupAvatarDownloadJob
Added a method to remove the Group avatar
Fixed an issue where the recipient diffing on the HomeActivity wasn't working properly
Fixed an issue where the GroupAvatarDownloadJob could be scheduled even when there was already one scheduled
3 years ago
Morgan Pretty 97458a4baa Added a missing constructor 3 years ago
Morgan Pretty cd3b8f3571 Fixed a few issues related to the GroupAvatarDownloadJob
Added logic to avoid scheduling a GroupAvatarDownloadJob if there is already an existing one with the same parameters
Added logic to avoid trying to download an old avatar for a group if there is a new one
Added logic to prevent an old GroupAvatarDownloadJob from overriding a valid avatar with an old one
3 years ago
0x330a 395ada62ff
Update French translations (#1103)
* chore: update french translations file from crowdin

* chore: update french translations libsession file from crowdin

* chore: update french non-region translations file from crowdin

* chore: update french non-region libsession translations file from crowdin
3 years ago
Morgan Pretty 50989cb2ee Increased file upload limits to 10Mb 3 years ago
Morgan Pretty 0256735135 Fixed a few bugs, added logging and removed some old code
Added the ability to copy the sessionId of open group URL from the conversation menu
Added additional logging to the BatchMessageReceiveJob to make future debugging easier
Removed the OpenGroupMigrator
Updated the JobQueue logging to provide more insight
Fixed an issue where the database migrations weren't blocking which could result in failing/crashing SQL queries
Fixed an issue where the new database file wouldn't be removed if a migration error was thrown
Fixed an issue where the new database could exist in an invalid state and the app wouldn't attempt to remigrate
Fixed an incorrectly throw exception in the PassphrasePromptActivity
3 years ago
Morgan Pretty 87f1d708b1 Merge remote-tracking branch 'upstream/dev' into feature/unread-mention-indicator
# Conflicts:
#	app/src/main/res/values/themes.xml
3 years ago
Morgan Pretty 05838faaf0 Updated the unread count logic to recalculate correctly 3 years ago
Morgan Pretty 2711a6dd5f
Merge pull request #994 from ceokot/message-request-response
Add profile data to message request responses
3 years ago
Morgan Pretty ce3aa980aa Merge remote-tracking branch 'upstream/dev' into message-request-fixes
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/groups/OpenGroupManager.kt
#	libsession/src/main/java/org/session/libsession/messaging/open_groups/OpenGroup.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPoller.kt
3 years ago
Morgan Pretty 251df065f8 Merge remote-tracking branch 'upstream/dev' into message-request-response
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
3 years ago
Morgan Pretty dc9458f313 Merge remote-tracking branch 'upstream/dev' into feature/unread-mention-indicator
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/attachments/DatabaseAttachmentProvider.kt
#	libsession/src/main/java/org/session/libsession/database/MessageDataProvider.kt
3 years ago
Morgan Pretty 23dca5b38d Merge remote-tracking branch 'upstream/dev' into feature/unread-mention-indicator 3 years ago
Morgan Pretty 025989f928
Merge pull request #1069 from mpretty-cyro/feature/performance-improvements
Performance improvements
3 years ago
Morgan Pretty bdac7f2ea3
Merge pull request #1087 from 0x330a/fix/expire-old-call-messages
Prevent very old messages (15 minutes ago) being processed to prevent endless crashes in some cases
3 years ago
0x330a 5861623369
fix: may have been preventing new closed group message on multi-device (#1081) 3 years ago
Morgan Pretty ebe8479e4c Resolved PR comments 3 years ago
0x330a 86b065203f
fix: prevent very old messages (15 minutes ago) being processed to prevent endless crashes in some cases 3 years ago
Morgan Pretty 8a4a9623cc Fixed an edge case where an OpenGroup might not download it's image 3 years ago
Morgan Pretty 0ed5c5825d Cleaned up some of the error logging 3 years ago
Morgan Pretty 810430e806 Fixed a couple of issues with the OpenGroupDeleteJob
Updated the OpenGroupDispatcher to have a thread limit of 8 (was previously unlimited which could result in the app getting flooded with threads under certain conditions)
Updated the OpenGroupDeleteJob to do bulk deletions (instead of individual message deletions)
Updated the OpenGroupDeleteJob to catch and report failures (wasn't previously happening)
3 years ago
Morgan Pretty 694ca79958 Added the unread mention indicator to the conversation list
Fixed the unread indicator colours to match correct theming designs
Fixed a bug where the unread count could be incorrect when receiving UnsendRequests within the same poll
Added a couple missing theme colours
3 years ago
0x330a ba87cbc070
fix: standardise call menu recipient function to share with the new action bar to center better. issue with closed group creation on multi device potentially 3 years ago
0x330a dd51c9ab41
refactor: move the legacy/updated expiring and add extra condition it is only set from one on one conversations (non self-send) 3 years ago
0x330a f0aba3a973
fix: look at early expiring incoming messages for delete after read 3 years ago
Morgan Pretty cc5c63b211 Fixed a couple of issues from the rebase, removed an unneeded text clear 3 years ago
Morgan Pretty 3e68bdc2f8 Fixed an issue introduced by the last commit with OpenGroup initialisation 3 years ago
Morgan Pretty 5afd647686 Tweaked some open group handling and a couple of onboarding issues
Updated the OpenGroup adding and polling logic to reduce duplicate API calls
Updated the BackgroundGroupAddJob to start a GroupAvatarDownloadJob instead of running the download itself (to appear to run faster)
Defaulted OpenGroups to use blinded auth when no server capabilities are present
Fixed an issue where the background poller could be started even though the onboarding hadn't been completed
Fixed an issue where the database could get into an invalid state if the app was restarted during onboarding
3 years ago
0x330a 2048e08c86
fix: legacy message deletions working better now 3 years ago
0x330a b6a4fb9024
refactor: fix star imports 3 years ago
0x330a 06947b63fb
fix: handle the correct legacy setting of expiring config based on thread not message sender (incorrectly attributing to 1o1 instead of groups 3 years ago
Morgan Pretty d68d26cd5d Added the MockDataGenerator to simplify db testing 3 years ago
charles b1f69539a9 Apply conversation config on messages being converted to protobuf 3 years ago
charles cdbf76c0f1 Only allow admins to change disappearing messages config 3 years ago
charles 1f0a0760ba Cleanup refactor 3 years ago
charles 03766d57ee Disappear after read info refactor 3 years ago
charles 03c95f1ba7 Expire group update info and call messages 3 years ago
charles e460e086e6 Cleanup 3 years ago
charles 1ba8f9f80d Remove incomplete SyncedExpiry implementation 3 years ago
charles 18ff597811 Fix outdated client banner display 3 years ago
charles 2228bfc8f2 Fix expiry start 3 years ago
charles 8f99b5aa11 Start disappearing after sent for closed groups 3 years ago
charles 92b30739f0 Disappearing messages job update 3 years ago
charles 304bf42c0d Fix expiry info disappearance 3 years ago
charles 42923b5c2b Fix message disappearance after send 3 years ago
charles 3c6b93b2f8 Merge branch 'dev' into disappearing-messages 3 years ago
charles 487f99ab93 Fix expiry timer update handling 3 years ago
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>
3 years ago
charles 065417ebbb Add synced expiries job 3 years ago
charles 8a51c8882c Fix legacy expiration timer update handling 3 years ago
charles 9e004cd09a Expiration config tweaks 3 years ago
charles d23b849c91 Group settings refactor 3 years ago
charles 2494483afb Clear open group inbox messages 3 years ago
charles 48a99a85c3 Legacy expiration type ui default tweaks 3 years ago
charles 23c881f3ce Legacy expiration type handling tweaks 3 years ago
charles a6f9e17122 Legacy settings ui tweaks 3 years ago
charles 4b66e0516d Default expiration timer value to zero 3 years ago
charles 1ad10a4ac7 Expiration timer update ui message tweaks 3 years ago
charles a4e64187f1 Cleanup expiring message manager 3 years ago
charles d70bfe5614 Add pre-release config flag and client version detection 3 years ago