Commit Graph

47 Commits

Author SHA1 Message Date
Morgan Pretty cf2e198a64 Updated the profile picture modal
Moved the ProfilePictureView into SessionUIKit
Fixed a couple of minor ProfilePictureView bugs
2023-05-24 17:42:43 +10:00
Ryan Zhao 1845340582 WIP: refactor on the call UI to add switching function of caller and callee's video views 2023-02-13 14:22:54 +11:00
Morgan Pretty eb3c31d911 Fixed a few more bugs
Updated the PathStatusView to take Reachability into account for it's status indicator
Fixed an issue where a user couldn't delete their own messages sent to a community
Fixed an issue where the app didn't require a passcode to be set to use screen lock
Fixed an issue where the delivery status on a sending message might not update when on the conversation screen
Fixed an issue where read receipts weren't working
2023-02-06 12:51:34 +11:00
Morgan Pretty f7199b4c44 Updated the code to take the service node offset into account when setting timestamps 2022-12-21 16:39:52 +11:00
Ryan Zhao 10ecd32e4b increase call connecting time from 30s to 60s 2022-09-15 17:04:36 +10:00
ryanzhao 87c2bc3700 tweaks on the logic to suspend database when call is ended in background 2022-09-07 10:46:39 +10:00
ryanzhao 7c1d332763 move database suspending logic when handling calls in background after writeAsync 2022-09-06 12:16:58 +10:00
Ryan Zhao ae7895c18e fix a issue where the call info message won't be updated 2022-09-05 17:14:29 +10:00
Ryan Zhao e3479107f3 feat: give more time for calls to connect 2022-09-05 13:31:25 +10:00
ryanzhao a5ede8c6a2 fix a case when the app goes into background with an ongoing call 2022-09-02 16:59:50 +10:00
Morgan Pretty 9859cf95a4 Attempted to fix the notification & call reporting issues
Fixed an issue where fileIds weren't correctly getting sent along with open group messages
Fixed an issue where the screens could miss updates if the device was locked with the app in the foreground and then later unlocked after receiving notifications
Added an optimisation to prevent attempting to send a message after it has been deleted
Added logic to report fake calls if the code goes down an invalid code path when handling a call (to prevent Apple blocking the app)
Delayed the core which clears notifications to increase the time the app has to handle interactions (just in case it was a race condition)
2022-07-25 17:03:09 +10:00
Morgan Pretty 4afddd6fbb Fixed a number of reported bugs, some cleanup, added animated profile support
Added support for animated profile images (no ability to crop/resize)
Updated the message trimming to only remove messages if the open group has 2000 messages or more
Updated the message trimming setting to default to be on
Updated the ContextMenu to fade out the snapshot as well (looked buggy if the device had even minor lag)
Updated the ProfileManager to delete and re-download invalid avatar images (and updated the conversation screen to reload when avatars complete downloading)
Updated the message request notification logic so it will show notifications when receiving a new message request as long as the user has read all the old ones (previously the user had to accept/reject all the old ones)
Fixed a bug where the "trim open group messages" toggle was accessing UI off the main thread
Fixed a bug where the "Chats" settings screen had a close button instead of a back button
Fixed a bug where the 'viewsToMove' for the reply UI was inconsistent in some places
Fixed an issue where the ProfileManager was doing all of it's validation (and writing to disk) within the database write closure which would block database writes unnecessarily
Fixed a bug where a message request wouldn't be identified as such just because it wasn't visible in the conversations list
Fixed a bug where opening a message request notification would result in the message request being in the wrong state (also wouldn't insert the 'MessageRequestsViewController' into the hierarchy)
Fixed a bug where the avatar image wouldn't appear beside incoming closed group message in some situations cases
Removed an error log that was essentially just spam
Remove the logic to delete old profile images when calling save on a Profile (wouldn't get called if the row was modified directly and duplicates GarbageCollection logic)
Remove the logic to send a notification when calling save on a Profile (wouldn't get called if the row was modified directly)
Tweaked the message trimming description to be more accurate
Cleaned up some duplicate logic used to determine if a notification should be shown
Cleaned up some onion request logic (was passing the version info in some cases when not needed)
Moved the push notification notify API call into the PushNotificationAPI class for consistency
2022-07-08 17:53:48 +10:00
Morgan Pretty 8cf2a57fcc Renamed GRDBStorage to Storage (no use having the prefix anymore since the old DB is deprecated) 2022-07-01 13:08:45 +10:00
Morgan Pretty a998cadbb7 Fixed the broken unit tests
Fixed a few bugs uncovered by the unit tests
2022-06-22 14:27:34 +10:00
Morgan Pretty 4133a49a34 Made a couple of tweaks to the GRDBStorage interface
Updated the ControlMessageProcessRecord to allow for duplicate handling of UnsendRequest messages
2022-06-21 13:39:46 +10:00
Morgan Pretty eeccfb47d5 Fixed all of the build errors from merge, migrated Call logic, started idBlinding migration and bug fixes
Fixed some broken file paths
Fixed a couple of bugs with closed groups
Fixed a few migration issues
Fixed a bug with the ProfilePictureView in open groups (was including the open parenthesis in the initials)
Migrated the Id Blinding changes to work with GRDB
Migrated the call logic to work with GRDB
Updated the code to work the with hard fork changes
2022-06-09 18:37:44 +10:00
ryanzhao 5fa63286da refactor timeout logic for calls incoming and reconnecting 2022-04-06 15:41:38 +10:00
ryanzhao f2cfa29b21 add call related logs to log file 2022-04-05 16:35:09 +10:00
Ryan Zhao 07c18927f2 minor fix to prevent redundant offer 2022-03-25 16:29:52 +11:00
Ryan Zhao 9df52a0a89 implement new approach for call reconnection 2022-03-25 13:26:26 +11:00
Ryan Zhao e7c564914d makes more sense on call timeout 2022-03-24 15:05:00 +11:00
Ryan Zhao 952a3d3414 minor fix for merging 2022-03-02 14:46:23 +11:00
Ryan Zhao e413b9da86 enable calls 2021-12-14 13:57:25 +11:00
ryanzhao f2e3ae909f disable making calls 2021-12-09 14:28:27 +11:00
Ryan Zhao 71e6ccd94b add flag for enable/disable call function 2021-12-08 14:08:01 +11:00
Ryan Zhao 4658e76d46 fix linked device answering/ending call issues 2021-12-06 16:02:54 +11:00
Ryan Zhao cfcd52c5bb minor refactoring to prevent crash after making a call 2021-12-02 14:41:29 +11:00
Ryan Zhao a75ecb30db minor fix 2021-12-01 15:57:23 +11:00
Ryan Zhao 8cab6d1013 show short session id for callee/caller name 2021-12-01 15:35:28 +11:00
Ryan Zhao 82400c6734 clean 2021-11-29 16:45:40 +11:00
Ryan Zhao 9e6c81d28b improve call message UI 2021-11-29 12:10:33 +11:00
Ryan Zhao e504e23f92 minor fix 2021-11-19 11:50:14 +11:00
ryanzhao 95c8606408 deal with audio I/O change 2021-11-15 12:22:31 +11:00
ryanzhao 716378ccd3 handle offer message might come in earlier than pre offer message 2021-11-12 16:24:47 +11:00
ryanzhao 02d0499618 seperate CallKit uuid from session call id 2021-11-12 09:17:06 +11:00
ryanzhao 9346864843 end call if there is no answer in 60s 2021-11-11 16:51:54 +11:00
ryanzhao fa79124bb7 minor refactoring & handle network change 2021-11-11 16:09:39 +11:00
ryanzhao 248a02e1e9 minor fix 2021-11-10 14:31:02 +11:00
ryanzhao 2942168030 fix call kit not working when the screen is locked 2021-11-10 11:13:37 +11:00
ryanzhao ff79c58f44 update call message after a call ended 2021-11-09 16:05:23 +11:00
ryanzhao f019fe7733 use CallKit for all cases 2021-11-09 11:53:38 +11:00
ryanzhao 888df37581 fix call connection 2021-11-08 15:09:45 +11:00
ryanzhao bef20e2f9a refactor for CallKit 2021-11-08 09:12:18 +11:00
ryanzhao 6f78d6dfbe refactoring for CallKit 2021-11-03 15:31:50 +11:00
ryanzhao e530b50938 WIP: notification for voip call 2021-10-29 16:32:50 +11:00
ryanzhao 4db87992b2 refactor for voip push notification 2021-10-29 15:22:23 +11:00
ryanzhao 0ef7bdc9ce refactor to plug in callkit 2021-10-28 17:02:41 +11:00