Commit graph

55 commits

Author SHA1 Message Date
Morgan Pretty
8ca00ca578 Fixed a number of bugs, resolved some TODOs and tested the outbox APIs
Updated the join open group method to retrieve the capabilities as part of the initial request
Updated the OpenGroupManager to require a transaction to be passed to the various 'handler' methods (allowing for everything to be processed within a single transaction)
Fixed a few issues where we weren't storing the timestamp for open group messages and DMs which could result in duplicate messages
Fixed an issue where we were setting the timestamp value for messages sent to an open group without converting it to be milliseconds to be consistent with other messages
Fixed an issue where the BatchRequestInfo could incorrectly flag it's response as failing to parse even though the type was optional
Fixed a bug where the open group would re-fetch all messages every other time
Fixed a bug where the long press context menu wouldn't appear after failing to delete a message
Fixed a bug where joining an open group would trigger the join behaviour and APIs twice
2022-03-03 17:46:35 +11:00
Morgan Pretty
dbead5e3c8 Got the '/inbox' APIs and encryption/decryption/validation working
Added a few types to make the code more readable
Added the inbox request to the polling
Added a couple of properties to the TSContactThread to indicate the originating open group to support SOGS DMs
Added code to store the latest message id for an open group inbox
Added a bunch of documentation from the API docs into the OpenGroupAPI (and associated models)
Updated the OpenGroupAPI to match the latest docs
Fixed the incorrect structure of the SendDirectMessageRequest
Fixed an incorrect inbox endpoint path
Tweaked the batch response handling so it wouldn't fail to parse all responses if a single one failed
Renamed IdPrefix to SessionId.Prefix and cleaned up the type to be more readable & self-documenting
2022-02-25 11:59:29 +11:00
Morgan Pretty
9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
2022-02-02 16:59:56 +11:00
Ryan Zhao
94c1879263 fix unsend request receive handler 2021-07-30 17:04:56 +10:00
nielsandriesse
e72c6d4cbd Mark .noThread error as non-retryable 2021-05-28 09:09:56 +10:00
nielsandriesse
c36cf1a36d Hopefully fix closed group handling bug 2021-05-19 08:42:58 +10:00
Niels Andriesse
bd04775cbf Implement open group invitations UI 2021-05-07 13:10:21 +10:00
Niels Andriesse
1a12487292 Clean 2021-04-15 10:09:05 +10:00
ryanzhao
1893ccac76 use TSIncomingMessage's serverTimastamp to make more sense 2021-04-14 11:39:04 +10:00
Ryan ZHAO
fcc3c27779 fix unread message count bug 2021-04-12 16:56:53 +10:00
Niels Andriesse
08015f570f Create DataExtractionNotificationInfoMessage 2021-03-02 15:00:22 +11:00
Niels Andriesse
82690259b2 Clean protobuf 2021-03-02 13:12:24 +11:00
Niels Andriesse
e945a6779f Include profile in configuration sync message 2021-02-23 09:47:38 +11:00
Niels Andriesse
37c652c0d0 Make admins send latest closed group key pair when members are added 2021-02-11 16:14:03 +11:00
nielsandriesse
65f397ccd1 Debug 2021-02-10 09:51:28 +11:00
Niels Andriesse
1fda8e4249 Add encryption key pair request message 2021-02-08 13:19:38 +11:00
Niels Andriesse
cf333d5e3d Merge branch 'closed-groups' into multi-device 2021-01-25 13:50:18 +11:00
Niels Andriesse
c9c83da3dc Rename ClosedGroupUpdateV2 → ClosedGroupControlMessage 2021-01-22 10:28:26 +11:00
Niels Andriesse
9ea1ccd0c2 Update ClosedGroupUpdate for new message types 2021-01-22 10:02:42 +11:00
Niels Andriesse
74fd3eb812 Partially implement message syncing 2021-01-14 10:40:58 +11:00
nielsandriesse
d6314c8d30 Handle configuration messages 2021-01-13 13:38:07 +11:00
nielsandriesse
d5e1237b0c Allow admins to leave & fix remaining issues 2021-01-08 14:54:27 +11:00
Niels Andriesse
ce86d9a196 Debug 2021-01-06 09:26:49 +11:00
nielsandriesse
de384fd4d9 Ensure legacy closed groups still work 2021-01-05 16:13:02 +11:00
Niels Andriesse
da503b0df1 Update Session protocol closed groups logic 2021-01-05 14:54:37 +11:00
Niels Andriesse
ef1d6392a7 Activate the Session protocol 2021-01-04 10:53:08 +11:00
Niels Andriesse
2a4977d269 Implement Session protocol 2020-12-14 09:49:02 +11:00
nielsandriesse
d6c115bc2a Fix module linking issue 2020-12-02 16:25:16 +11:00
nielsandriesse
75b184c0b9 Use new message receiving pipeline in PN extension 2020-12-02 09:52:50 +11:00
Niels Andriesse
ef76d73821 Fix typo 2020-11-30 14:20:36 +11:00
Niels Andriesse
b621bdc69a Partially fix open groups 2020-11-30 11:00:28 +11:00
nielsandriesse
addc859c84 Fix duplicate messages & debug 2020-11-27 15:13:42 +11:00
nielsandriesse
77c1f721b9 Further debug attachment sending 2020-11-27 09:07:24 +11:00
nielsandriesse
5dfd4b1965 Restructure 2020-11-25 16:15:16 +11:00
nielsandriesse
178ab7e3e2 WIP 2020-11-24 20:09:23 +11:00
Niels Andriesse
ac1bbb3de1 Handle open group message ID 2020-11-23 15:58:48 +11:00
Niels Andriesse
d2e8f2142e WIP 2020-11-23 15:08:01 +11:00
Niels Andriesse
d7c71a8c06 Make things compile again 2020-11-23 10:24:40 +11:00
nielsandriesse
b218a16b05 Implement attachment downloading 2020-11-20 15:53:56 +11:00
nielsandriesse
961878f74c Parse attachment pointers 2020-11-20 11:10:53 +11:00
Niels Andriesse
9242f971fd Fix timestamp handling 2020-11-19 16:28:30 +11:00
Niels Andriesse
72b4c3edaf WIP 2020-11-19 15:24:09 +11:00
nielsandriesse
58802936c1 Finish message receiving pipeline 2020-11-19 09:44:00 +11:00
nielsandriesse
97545de75e Handle expiration timer updates 2020-11-18 15:36:51 +11:00
nielsandriesse
7e9eb2f138 Make typing indicators work & implement job resuming 2020-11-18 14:27:30 +11:00
Niels Andriesse
b030b5999b Make messages show up again 2020-11-18 12:02:38 +11:00
nielsandriesse
aba4cda143 WIP 2020-11-12 16:23:34 +11:00
nielsandriesse
82127bfe4d Clean 2020-11-10 15:48:47 +11:00
nielsandriesse
505370f8d6 Implement open group message conversion 2020-11-09 13:56:50 +11:00
nielsandriesse
a3382f41d4 Re-organize files 2020-11-09 10:58:47 +11:00