Commit graph

1040 commits

Author SHA1 Message Date
Niels Andriesse
3161680432 Redo friend request handling 2019-05-16 12:08:37 +10:00
Niels Andriesse
49c6611d9d WIP 2019-05-15 16:48:16 +10:00
Niels Andriesse
cb1e876b7a Make friend request status updates more reliable 2019-05-15 11:19:33 +10:00
Niels Andriesse
b83766ef74 Clean & fix conversation settings crash 2019-05-14 15:54:39 +10:00
Niels Andriesse
e3e7788219 Disable input if a friend request is pending 2019-05-14 13:39:07 +10:00
Mikunj
f8de85ac42 Fix deadlock crash when receiving PreKeyBundle message.
It was deadlocking because we had a transaction inside another transaction.
To stop this we can pass in the parent transaction when setting or removing bundles, as well as generating PreKeyBundle from the proto message.
2019-05-14 12:33:48 +10:00
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
Niels Andriesse
4da8d33932 Clean 2019-05-10 13:38:00 +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
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
2092df955a Generate mock notification upon successful message retrieval 2019-05-08 15:19:01 +10:00
Mikunj Varsani
ab00bd54b9 Fixes 2019-05-08 14:23:54 +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
Mikunj Varsani
f8a7c40914 Add decryption of friend request message type. 2019-05-08 11:03:35 +10:00
Niels Andriesse
a1c760965a Fix Obj-C interop issue 2019-05-08 10:36:00 +10:00
Mikunj Varsani
93ceda851c Merge branch 'master' into fallback-cipher 2019-05-08 09:40:44 +10:00
Niels Andriesse
44b6a9567b Refactor Loki API 2019-05-08 09:29:07 +10:00
Mikunj
f530472a26 Added FallBackSessionCipher. 2019-05-07 16:32:03 +10:00
Niels Andriesse
d05b4aa2bf Make Mikunj happy 2019-05-07 13:53:31 +10:00
Niels Andriesse
f0566d2b05
Merge pull request #9 from loki-project/messaging-refactor
Minor Refactoring
2019-05-07 13:17:37 +10:00
Niels Andriesse
a3c92d98c0 Create JSON type 2019-05-07 13:15:48 +10:00
Mikunj
19491ccbc4 Minor fix when generating messages to send. 2019-05-07 12:02:57 +10:00
Niels Andriesse
72cc345734 Hook up new messaging API 2019-05-07 11:56:00 +10:00
Niels Andriesse
294d8b5c11 WIP 2019-05-07 11:34:35 +10:00
Mikunj Varsani
512b71a9d4
Merge branch 'master' into proof-of-work-ui 2019-05-06 17:01:43 +10:00
Mikunj
bee85caa14 Improved naming. 2019-05-06 16:14:51 +10:00
Niels Andriesse
ee2361b5cc Hook up Loki messaging API 2019-05-06 16:13:32 +10:00
Mikunj
f8cccd8967 Show spinning cog if we are calculating the proof of work. 2019-05-06 16:12:14 +10:00
Mikunj
598226d58e Fix incorrect function signature. 2019-05-06 14:58:03 +10:00
Niels Andriesse
ca820494dd Merge branch 'message-proof-of-work' of github.com:loki-project/loki-messenger-ios into message-proof-of-work 2019-05-06 14:28:17 +10:00
Niels Andriesse
dd18e65e3e Fix minor code style issues 2019-05-06 14:23:44 +10:00
Mikunj
e4d612a58e Only send message to the primary device.
Fail send if sending message to self.

We do this because loki doesn't support multi-device sending at the moment.
2019-05-06 14:22:34 +10:00
Mikunj
ad0fc7944e Made ProofOfWork work in objective c.
Added proof of work calculation when sending message.
2019-05-06 13:53:39 +10:00
Matthew Chen
4060bf0ca4 Add Pinterest link previews. 2019-04-22 16:37:09 -04:00
Michael Walker
11af22432d Add pinterest domain and asset domains for link preview support 2019-04-22 16:36:44 -04:00
Michael Kirk
21cffdfb5e always specify default when accessing bool preference 2019-04-10 14:32:53 -06:00
Michael Kirk
30266bf65e autoformatted 2019-04-04 13:44:42 -06:00
Michael Kirk
64a0c4bfaa auto-migrate to Swift5 2019-04-04 13:44:42 -06:00
Michael Kirk
2242dd240f Fix "blank notification text" for oversize messages 2019-03-29 13:31:27 -06:00
Matthew Chen
81e3dfc3cf Respond to CR. 2019-03-27 12:36:39 -04:00
Matthew Chen
bb1921afe6 Simplify link preview cache. 2019-03-27 12:35:47 -04:00