Commit graph

736 commits

Author SHA1 Message Date
Mikunj
85298012e4 Added generation of seed in registration. 2018-12-04 15:31:59 +11:00
Beaudan
28fc5793a7 More explicit function names, shifted friend request sent logic to more sensible place 2018-12-03 16:45:51 +11:00
Beaudan
91a8a82e39 More PR suggestions, now recover from early exit before friend request is sent 2018-12-03 16:45:03 +11:00
Beaudan
2de01d0343 Back to multiple pending states, fix some notification bugs and friend requests should now work for all cases besides message sending interruption 2018-12-03 16:44:10 +11:00
Beaudan
051e4dd22c XAnother big refactor to tie conversation UI logic to the friendRequestStatus variable 2018-12-03 16:44:10 +11:00
Mikunj
c10e81355d Moved profile name saving to account manager. 2018-12-03 12:54:19 +11:00
Mikunj
06f79eb3fd Allow user to set display name when registering. 2018-12-03 08:55:43 +11:00
sachaaaaa
f900fc496d
Merge pull request #61 from Mikunj/feature/profile-nickname
Added profile sharing and setting nicknames.
2018-11-29 15:59:53 +11:00
Mikunj
f596c8125a Only attach profile if name is set. 2018-11-29 15:49:35 +11:00
Mikunj
18d638fdbf Fix sending and receiving profile.
Don't delete profile after if we set the display name to empty.
2018-11-28 14:08:25 +11:00
Beaudan
fa63ce5ade Review changes 2018-11-28 13:16:50 +11:00
Beaudan
35c89ea4d9 Big refactor, prekeybundle moved back to a content message 2018-11-28 12:10:44 +11:00
Mikunj
14ee7fec65 Moved and nicknames into conversations. 2018-11-28 10:31:11 +11:00
Mikunj
aa57693fce Update profile if we get it through a message. 2018-11-28 10:31:11 +11:00
Mikunj
774c52a407 Added dynamic profile fetching in conversation.
Added setting profile when sending DataMessage.
2018-11-28 10:31:11 +11:00
Beaudan
7c92eeac30 Fixing cache clearing bug 2018-11-27 16:29:45 +11:00
sachaaaaa
4309a10ebc
Merge pull request #60 from BeaudanBrown/develop-mode-settings
Removed some repetetive logs, developer mode settings
2018-11-26 16:51:23 +11:00
sachaaaaa
b03548637c Fix getKeysForNumber when staleDevices is not empty 2018-11-26 16:18:24 +11:00
Beaudan
b515fc41e7 Removed some repetetive logs, made the polling time a variable and lower the polling time and PoW difficulty if we are in debug mode 2018-11-26 16:01:13 +11:00
Beaudan
b65d6a6d2c Refactor friend request status to use a state enum variable 2018-11-26 11:28:43 +11:00
sachaaaaa
7e783639fd Fix inexistent enum value for Prekey Type 2018-11-23 17:46:26 +11:00
Mikunj
9fd822a7e3 Remove preKeys on friend request decline. 2018-11-23 12:25:44 +11:00
Mikunj
0dabce9e28 Remove preKeyBundle from message.
Always save preKeyBundles if we receive them.
Always override preKeys when saving.
2018-11-23 11:09:47 +11:00
Mikunj
149da3374a Fix pkb not being saved on the first cipher message. 2018-11-23 10:59:10 +11:00
Mikunj
0404f42738 Merge commit 'dbdd52b4eb11ca71adcae547c931b5cfda1ada11' into fix/pkb-type 2018-11-22 16:10:51 +11:00
sachaaaaa
dbdd52b4eb
Merge pull request #50 from Mikunj/fix/friend-request
Friend request fixes
2018-11-22 16:06:41 +11:00
Mikunj
05f8a1c43a Handle pkb friend request accept. 2018-11-22 15:39:49 +11:00
Mikunj
4bb93e6e3c rename sendEmptyMessageWithPreKeys to sendFriendRequestAccepted. 2018-11-22 15:18:10 +11:00
Mikunj
bd15f426f9 Attack a type to preKeyBundleMessage. 2018-11-22 15:15:28 +11:00
Mikunj
f29a515fdf Fix up typos. 2018-11-22 14:52:32 +11:00
Mikunj
8a0b8e1f00 Store the state of the friend request inside the conversation. 2018-11-22 13:59:03 +11:00
Mikunj
484efd34a3 Added friend request message expiration. 2018-11-22 13:37:22 +11:00
Mikunj
db1145c0ce Fix handling empty content. 2018-11-21 15:37:19 +11:00
sachaaaaa
ccb5ff79d4 Use correct log level in development mode and use log.debug() for some of the reoccurring logs 2018-11-21 15:06:22 +11:00
Mikunj
dba6a36e83 removed old unused code. 2018-11-21 12:38:01 +11:00
Mikunj
75219966a7 Fixed preKeyBundle decryption. 2018-11-21 11:29:48 +11:00
Mikunj
b21a7197f7 Fix preKeyBundle not sending. 2018-11-20 16:20:57 +11:00
Mikunj
110387508f UI fixes. 2018-11-20 16:01:37 +11:00
Mikunj
4ebdfab633 Update handling of new message logic. 2018-11-20 15:08:29 +11:00
Mikunj
6c5c95d956 Added preKey decryption. 2018-11-20 14:44:48 +11:00
Mikunj
1264630649 Attach preKeyBundle outside of the message content. 2018-11-20 14:23:06 +11:00
Mikunj
cf3e9716ed Update new conditions for friend accepted and key exchange complete in conversations model. 2018-11-20 14:07:10 +11:00
Beaudan
ff3cc7a315 Review changes 2018-11-20 11:02:02 +11:00
Beaudan
489ec8fc65 Heap of linting, eslint warning/error removal, and fixed a couple small bugs found along the way
Created new table to store the received message hashes. Checking this table when receiving messages to look for duplicates. Should be cleared of expired messages on app start and every hour after

Removed id which was not needed for seen messages. Refactored filter logic into function and found function name error

create unique index for contact prekeys (to allow using REPLACE)

Fixed lint stuff that merge brought back
2018-11-19 18:01:13 +11:00
sachaaaaa
78d39ac177
Merge pull request #41 from Mikunj/fix/friend-notification
Friend Notifications
2018-11-16 14:16:23 +11:00
Mikunj
17e5c861a1 Fixed review issues.
Fixed lint error.
2018-11-16 13:35:50 +11:00
sachaaaaa
82a09d46d7
Merge pull request #42 from sachaaaaa/restore_padding
restore ciphertext padding
2018-11-16 11:58:44 +11:00
Mikunj
ece266fffd Added showing pow icon. 2018-11-15 14:06:07 +11:00
sachaaaaa
847401e49a restore ciphertext padding 2018-11-15 12:35:46 +11:00
sachaaaaa
9f101d9381
Merge pull request #40 from Mikunj/merge/signal
Merge Signal 1.18.0
2018-11-15 12:15:31 +11:00