Commit graph

11605 commits

Author SHA1 Message Date
Mikunj 8fff98d94e Save prekey bundle from content message. 2019-05-14 09:24:20 +10:00
Mikunj ea7205ce76 Discard PreKeyBundle once session has been built. 2019-05-14 09:24:20 +10:00
Mikunj 705e5f939d Set pre key bundle in FriendRequestMessage and EndSessionMessage.
Updated PreKey Operations to not contact signal servers.
2019-05-14 09:24:20 +10:00
Mikunj bd93c01d92 Add generation and storage of PreKeyBundle. 2019-05-14 09:24:20 +10:00
Mikunj a90aa82710 Added PreKeyRecord <-> Contact pubkey mapping. 2019-05-14 09:24:20 +10:00
Mikunj d130415973 Allow generating a set amount of prekeys. 2019-05-14 09:24:20 +10:00
Niels Andriesse 635dcef2b2 Fix incoming friend request interaction 2019-05-13 16:40:22 +10:00
Niels Andriesse dca6aed6ee Fix message cell sizing issue 2019-05-13 16:21:07 +10:00
Niels Andriesse 3dda1f17e1 Implement incoming friend request UI 2019-05-13 15:21:16 +10:00
Niels Andriesse 0a653e928b Add share public key button 2019-05-13 12:00:13 +10:00
Niels Andriesse d95d0671d6 Remove unnecessary local notification generation 2019-05-10 16:47:24 +10:00
Niels Andriesse 33cca6fc25 Update Pods 2019-05-10 14:41:26 +10:00
Mikunj e9beaf16cc Fix pods. 2019-05-10 14:34:19 +10:00
Niels Andriesse 4da8d33932 Clean 2019-05-10 13:38:00 +10:00
Mikunj 77b67e73bb Refactor LokiAPI 2019-05-10 12:41:49 +10:00
Niels Andriesse 45a7893bff Decrease foreground polling time interval 2019-05-10 12:30:29 +10:00
Niels Andriesse 992813ad24 Use UIApplicationBackgroundFetchIntervalMinimum 2019-05-10 12:04:39 +10:00
Niels Andriesse 4aef593d7c Also poll for messages when the app is in the foreground 2019-05-10 12:02:04 +10:00
Niels Andriesse b42ae83538 Fix validation 2019-05-10 11:38:48 +10:00
Niels Andriesse 2b490b5ad5 Use MessageFetcherJob for message receiving & fix decoding bug 2019-05-10 11:17:09 +10:00
Niels Andriesse f391c96747
Merge pull request #12 from loki-project/friend-request-backend
Friend request + Send message fix
2019-05-10 09:06:42 +10:00
Mikunj 787e2c1cb7 Send correct data to storage server.
Data -> Envelope -> WebSocket
2019-05-09 16:44:30 +10:00
Mikunj 09157673fe Added friend request states in TSThread.
Automatically send a OWSFriendRequest if we are not friend with the person.
2019-05-09 14:00:40 +10:00
Mikunj 8b1d5ec26d Add OWSFriendRequestMessage.
Re-organised files.

This is just a subclass of TSOutgoingMessage so it will work as any message would.
2019-05-09 12:19:12 +10:00
Niels Andriesse d4d9be9f0c Fix public key validation 2019-05-09 10:49:30 +10:00
Mikunj 26625980bd Fix message sending params.
Disable ProfileFetcherJob.
2019-05-09 09:45:31 +10:00
Niels Andriesse b1bc2c7557 Allow JSON fragments in responses 2019-05-08 17:13:04 +10:00
Niels Andriesse 39ae2f462d Fix incorrect key 2019-05-08 16:50:41 +10:00
Mikunj Varsani 8ca43bb614 Accept text/plain responses. 2019-05-08 16:44:07 +10:00
Niels Andriesse a8092cbfa3 Fix crash 2019-05-08 16:02:53 +10:00
Niels Andriesse 5a0f752de7 Merge branch 'master' of github.com:loki-project/loki-messenger-ios 2019-05-08 15:52:49 +10:00
Niels Andriesse c88ebe95ce Update Pods 2019-05-08 15:52:41 +10:00
Niels Andriesse aeea6f26de Re-enable notifications 2019-05-08 15:51:08 +10:00
Mikunj Varsani 9d77a7907c Fix crashing in LokiApi. 2019-05-08 15:32:10 +10:00
Niels Andriesse 2092df955a Generate mock notification upon successful message retrieval 2019-05-08 15:19:01 +10:00
Niels Andriesse 188d6d4d17 Fix minor code style issues 2019-05-08 14:44:25 +10:00
Mikunj Varsani 6989fa2c92
Merge pull request #11 from loki-project/fallback-cipher-decrypt
Added friend request message decryption
2019-05-08 14:30:20 +10:00
Mikunj Varsani ab00bd54b9 Fixes 2019-05-08 14:23:54 +10:00
Niels Andriesse 142a5e78be Update Pods 2019-05-08 14:17:57 +10:00
Niels Andriesse 574c72523b Fix typo 2019-05-08 14:17:24 +10:00
Niels Andriesse bae617c3ba Merge branch 'master' of github.com:loki-project/loki-messenger-ios into fallback-cipher-decrypt 2019-05-08 14:04:40 +10:00
Niels Andriesse a9a9800dd2 Fix duplicate error unwrapping 2019-05-08 14:01:23 +10:00
Mikunj Varsani 24aabb36b9 Forgot to add checking for friend request in OWSMessageManager. 2019-05-08 13:33:47 +10:00
Mikunj Varsani a743698386 Hooked up message send success and failure to LokiAPI.
Converted objective c functions from callbacks to promise in LokiAPI
2019-05-08 12:37:38 +10:00
Niels Andriesse 3c7b769d20 Fetch messages & ping friends when application becomes active 2019-05-08 11:42:31 +10:00
Niels Andriesse cc1f41c11b Implement background fetching skeleton 2019-05-08 11:30:02 +10:00
Mikunj Varsani f8a7c40914 Add decryption of friend request message type. 2019-05-08 11:03:35 +10:00
Mikunj Varsani 1ea8e147cb Updated generated proto files. 2019-05-08 11:03:35 +10:00
Mikunj Varsani 4603f90871 Added FallBackSessionCipher decryption 2019-05-08 11:03:35 +10:00
Niels Andriesse a1c760965a Fix Obj-C interop issue 2019-05-08 10:36:00 +10:00