Commit graph

293 commits

Author SHA1 Message Date
Niels Andriesse
2e8d62b3ee Fix friend request acceptance bug 2019-05-17 14:03:04 +10:00
Niels Andriesse
d5dc54af1b Partially fix UI updating bug 2019-05-17 12:38:36 +10:00
Niels Andriesse
23766848b8 Attempt to fix UI updating issue 2019-05-17 12:19:52 +10:00
Niels Andriesse
7dc2416873 Make sure isFriendRequest is always true for OWSFriendRequestMessages 2019-05-17 12:07:29 +10:00
Niels Andriesse
4d94346959 Fix minor logic issue & document friend request handling 2019-05-17 10:20:18 +10:00
Niels Andriesse
7faa9d333c Add missing save 2019-05-16 15:32:43 +10:00
Niels Andriesse
b6cef5826e Fix build 2019-05-16 14:34:03 +10:00
Niels Andriesse
be7724b41b Implement feedback 2019-05-16 14:31:53 +10:00
Niels Andriesse
3728638832 Reduce code duplication & fix cell sizing bug 2019-05-16 12:20:56 +10:00
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
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
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
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
Niels Andriesse
a9a9800dd2 Fix duplicate error unwrapping 2019-05-08 14:01:23 +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
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
Michael Kirk
870caaa84a simplify completion checking - make nonnull 2019-02-26 10:06:52 -07:00
Matthew Chen
5f0de5c36d Respond to CR. 2019-02-21 15:21:00 -05:00
Matthew Chen
bb7d328267 Send and process 'recipient update' sync messages. 2019-02-21 15:13:31 -05:00
Matthew Chen
e27e27cc3a Send and process 'recipient update' sync messages. 2019-02-21 15:13:31 -05:00
Matthew Chen
4f19d03bdc Send 'sent update' sync messages. 2019-02-21 15:13:31 -05:00
Matthew Chen
2dcc79fbca Fix issues around link previews. 2019-01-22 10:15:50 -05:00
Matthew Chen
63260ee94d Fix registration. 2019-01-08 15:38:08 -05:00
Matthew Chen
78d0685cba Discard transient messages if there is no session. 2019-01-07 08:49:31 -05:00