Audric Ackermann
c63d5a4581
rename serviceNodeApi to SNodeApi
2021-05-13 14:52:13 +10:00
Audric Ackermann
12d40aa94e
Fix attachment extension vnd ( #1628 )
...
* allow openoffice document extension and don't use
* allow opendocument to be shared with the extension rather than mimetype
Fixes #1593
* allow message without padding
* add test for odt files
2021-05-13 13:32:52 +10:00
Audric Ackermann
8cb50ebc91
move onionPath building to outside of index.ts
2021-05-13 13:18:16 +10:00
Audric Ackermann
58abd08e6d
Get snode from snode ( #1614 )
...
* force deleteAccount after 10sec timeout waiting for configMessage
* move some constants to file where they are used
* add a way to fetch snodes from snodes
* remove a snode from a pubkey's swarm if we get 421 without valid content
* remove getVersion from snodes
* hide groupMembers in right panel for non-group convo
2021-05-12 10:34:53 +10:00
Audric Ackermann
6591702c08
create convo for members if they don't exist
...
also, removing a private convo does not remove it entirely as we need
the convo to be able to remove members
2021-05-10 10:31:00 +10:00
Audric Ackermann
e10a3cd4a9
remove the channelId from groupInvitation
2021-05-07 15:01:15 +10:00
Audric Ackermann
248494f15b
redesign group invitation message type
2021-05-07 14:49:38 +10:00
Audric Ackermann
e733f29395
lint
2021-05-07 11:49:45 +10:00
Audric Ackermann
c063848167
pad and unpad message everywhere
...
attachment not padded for opengroup only
2021-05-07 10:56:14 +10:00
Audric Ackermann
7b96aba1bf
padd Message buffer for all outgoing messages (even opengroupv2)
2021-05-07 10:16:15 +10:00
Audric Ackermann
bc4bee6270
hide some logs
2021-05-06 16:02:47 +10:00
Audric Ackermann
5525312542
syncConf every 7 days and fix link device
2021-05-06 16:00:41 +10:00
Audric Ackermann
2b576de2cd
allow fileserverv2 attachments to be downloaded, upload disabled
2021-05-06 14:02:49 +10:00
Audric Ackermann
64eab5160d
remove zombies from the UI only
2021-05-05 18:14:59 +10:00
Audric Ackermann
2c40d1e623
hide checkmMark on showing group members
2021-05-05 16:40:16 +10:00
Audric Ackermann
fae80c327a
mark convo as ActiveAt when we get a message adding us after left
2021-05-05 16:40:15 +10:00
Audric Ackermann
eb0ddd85f4
add zombies logic for member leaving and removing
2021-05-05 16:40:15 +10:00
Audric Ackermann
7ec663df71
move SwarmPolling from window to require singleton
2021-05-05 16:40:14 +10:00
Audric Ackermann
4547afd97f
Poll for preview on room creation
2021-05-04 13:41:42 +10:00
Audric Ackermann
66d5fd93e2
Merge branch 'master' into open-group-v2
2021-05-04 12:34:07 +10:00
Audric Ackermann
3aa9ca785f
fix leave opengroup button right panel, and add memberCount
2021-05-03 10:40:43 +10:00
Audric Ackermann
bdcdca206b
write attachment path with absolute attachment to disk for opengroupv2
2021-04-30 15:48:12 +10:00
Audric Ackermann
87c3fa0c55
refresh snode list and rebuild onion path once in a day
2021-04-30 15:15:59 +10:00
Audric Ackermann
ad26e50de1
fix attachment upload for opengroupv1 and old file server
2021-04-30 11:37:28 +10:00
Audric Ackermann
710c9fa269
fix http request over onion
2021-04-30 11:12:44 +10:00
Audric Ackermann
cca4de710b
remove featureFlag onion v2 => if onion enabled it is v2
2021-04-29 14:44:16 +10:00
Audric Ackermann
5289d4c2aa
add joinable rooms on opengroupv2 joining screen
2021-04-29 10:43:14 +10:00
Audric Ackermann
0c0da48150
remove pow
2021-04-28 15:24:45 +10:00
Audric Ackermann
8444c7cbfc
increase to ttl of 14 days for everything except TypingMessages
2021-04-28 15:18:11 +10:00
Audric Ackermann
a26c5da6cb
Uniformize once and for all the conversation types
...
no more 'direct'. those are private convos
2021-04-28 14:20:22 +10:00
Audric Ackermann
e274313f23
add and remove Moderatos opengroupv2 (not yet working server side)
2021-04-28 11:49:41 +10:00
Audric Ackermann
98b69c17f0
add userblocking opengroupv2 and quoting back of messages
2021-04-27 16:56:34 +10:00
Audric Ackermann
5916ce5cbe
add the ban/unban logic for opengroupv2
2021-04-27 12:06:13 +10:00
Audric Ackermann
4aeec224b4
add download of attachments for opengroupv2
2021-04-27 11:14:07 +10:00
Audric Ackermann
bc938f650e
move AttachmentsDownload to typescript
2021-04-26 16:29:04 +10:00
Audric Ackermann
34148e67ec
add return of url after v2 attachment upload
2021-04-26 16:15:27 +10:00
Audric Ackermann
f7e163c142
add sending of message for opengroupv2`
2021-04-26 11:56:00 +10:00
Audric Ackermann
35d66d8865
fix bug fetching new token every request
2021-04-23 17:05:10 +10:00
Audric Ackermann
40793eb74d
fix leave of opengroupv2 logic
2021-04-23 15:43:49 +10:00
Audric Ackermann
9d825dc2d2
add start of OpenGroup Pollers v2 to start of the app
2021-04-23 14:59:08 +10:00
Audric Ackermann
193fb2a101
move some message interactions logic to another file
2021-04-23 11:08:38 +10:00
Audric Ackermann
9de65c8813
move ConversationController to its own file so we can fetch it easily
2021-04-23 10:12:53 +10:00
Audric Ackermann
f7581cf4eb
increase prettier maxWidth to 100
2021-04-22 18:03:58 +10:00
Audric Ackermann
6896cffd75
Merge branch 'clearnet' into HEAD
2021-04-22 18:02:01 +10:00
Audric Ackermann
27323a12f4
Merge branch 'master' into clearnet
2021-04-22 17:55:35 +10:00
Audric Ackermann
19f3b6014d
add poller for open group v2
2021-04-22 17:00:02 +10:00
Audric Ackermann
897bad2d5e
throw only for breaking stuff on ApiV2 calls
2021-04-22 10:37:55 +10:00
Audric Ackermann
b68338e26c
working get and post request with opengroup api v2
2021-04-21 14:42:59 +10:00
Audric Ackermann
c07271109f
Add a ConversationType OPEN_GROUP
2021-04-20 15:52:19 +10:00
Audric Ackermann
b9586c90ce
working open group v2 getInfo for https only
2021-04-20 14:52:02 +10:00
Ryan Tharp
6a1d0e93a3
Make 502 retry
2021-04-14 19:41:54 -07:00
Audric Ackermann
05987c6e8b
Merge remote-tracking branch 'upstream/master' into allow-unpad-attachments
2021-04-14 14:16:06 +10:00
Audric Ackermann
d98700b17f
allow unpadding of attachments if needed
...
currently, the padding of attachments is disabled behind a featureFlags
2021-04-14 14:15:02 +10:00
Audric Ackermann
1a2d148482
add attachment padding
2021-04-14 14:12:22 +10:00
Audric Ackermann
bbe62417e9
Merge branch 'clearnet' into encrypt-local-attachments
2021-04-14 10:48:15 +10:00
Audric Ackermann
cfc7825eee
Merge remote-tracking branch 'upstream/master' into clearnet
2021-04-14 10:45:52 +10:00
Audric Ackermann
ccf8a31ae3
move Attachments and Attachments_test to typescript
2021-04-14 10:34:48 +10:00
Audric Ackermann
42f0d21740
generate attachment key on migration
2021-04-14 10:33:52 +10:00
Audric Ackermann
050739b0ab
cleanup old blobs from time to time
2021-04-13 14:16:50 +10:00
Audric Ackermann
2393dce448
fix tslint
2021-04-13 10:27:33 +10:00
Audric Ackermann
a0698202df
redact snode IP used in logs on production builds
2021-04-13 10:21:09 +10:00
Audric Ackermann
3ea628a02f
pin certificate for seed nodes
2021-04-13 10:20:56 +10:00
Audric Ackermann
f12ca66008
redact snode IP used in logs on production builds
2021-04-12 16:46:20 +10:00
Audric Ackermann
47026b8d5b
pin certificate for seed nodes
2021-04-12 15:38:19 +10:00
Audric Ackermann
ed30be5334
fix attachments loading for avatar and exporting files
2021-03-26 16:31:27 +11:00
Audric Ackermann
def03c8baa
working encrypt/decrypt of attachments
2021-03-26 13:07:42 +11:00
Audric Ackermann
142bbd8eee
disable getVersion to snodes calls as we don't need it anymore
2021-03-24 13:34:08 +11:00
Audric Ackermann
8a2b6a5519
remove fallback to node-fetch
2021-03-24 13:33:55 +11:00
Audric Ackermann
2132395afb
disable getVersion to snodes calls as we don't need it anymore
2021-03-24 10:58:30 +11:00
Audric Ackermann
53d16d7dac
remove fallback to node-fetch
2021-03-24 10:30:23 +11:00
Audric Ackermann
f5a4094e0a
Merge pull request #1542 from Bilb/refactor-message-types
...
refactor to Visible and ControlMessage types
2021-03-19 12:57:12 +11:00
Audric Ackermann
ec6a5995db
sync expire timer updates
2021-03-19 12:14:23 +11:00
Audric Ackermann
79193ee7be
refactor to Visible and ControlMessage types
2021-03-19 10:43:47 +11:00
Audric Ackermann
eb30c7823c
add a way to click the toast to turn on microphone to show the settings
2021-03-16 15:19:56 +11:00
Audric Ackermann
24d33c7900
Merge branch 'clearnet' into add-attachment-padding
2021-03-16 11:22:48 +11:00
Audric Ackermann
0228cd5115
add attachment padding
2021-03-05 17:13:46 +11:00
Audric Ackermann
35e57f2509
move mnemonic.js to typescript
2021-03-05 14:52:44 +11:00
Audric Ackermann
553f264d12
make unread attrs as before a number, and remove calculatingPow
...
calculating pow is just the same as sending state
2021-03-05 13:48:58 +11:00
Audric Ackermann
ad117fe4e5
uniformized redux convo type and getProps() of conversation
2021-03-05 11:11:53 +11:00
Audric Ackermann
4a794e90a0
signInWithRecovery = show full screen loader
2021-03-04 10:43:17 +11:00
Audric Ackermann
39f8ca293a
speedup tests
2021-03-04 09:55:44 +11:00
Audric Ackermann
aac54e6045
Merge remote-tracking branch 'upstream/clearnet' into restore-handle-configuration
2021-03-03 13:54:39 +11:00
Audric Ackermann
6fbe060973
move deleteAccount() to AccountManager
2021-03-03 10:36:30 +11:00
Audric Ackermann
feb6d5a39a
register allconvos on ActionPanel start
2021-03-03 09:31:24 +11:00
Audric Ackermann
2ae259092f
fix propagation of WrongSwarmError in pollForAllKeys()
2021-03-03 09:29:03 +11:00
Audric Ackermann
533b95c827
fix updateMessage being always at the end of the messagesList
...
this was because we were using Date.now() always rather than using the
envelope timestamp to save the update
2021-03-02 13:40:48 +11:00
Audric Ackermann
db167eaf1b
fix a bug preventing our avatar to be updated on restore from seed
...
this was due to the fact that the redux was not ready when our
conversation is created. so the events were not linked
2021-03-02 13:31:12 +11:00
Audric Ackermann
05e9c936ff
speed up loading of messages by not notify on every new message
2021-03-02 12:41:25 +11:00
Audric Ackermann
f6e3b354d0
join openGroup => allow only one at a time for each channel/server
2021-03-02 11:52:00 +11:00
Audric Ackermann
c656dd25cf
move configMessage handling to a another file
2021-03-02 11:27:20 +11:00
Audric Ackermann
b8a17bcd94
do not include lokiProfile on sync Message => we use ConfigMessage now
2021-03-01 16:46:16 +11:00
Audric Ackermann
e052a6743a
fix building of sync message from 1-to-1 convo
2021-03-01 16:38:40 +11:00
Audric Ackermann
9586c3a06a
add linking of a device to the Registration logic
2021-03-01 16:20:35 +11:00
Audric Ackermann
305ece1c7c
update our profile on incoming configMessage sent after our last update
2021-03-01 14:21:29 +11:00
Audric Ackermann
5d6d81b9ef
Move accountManager to typescript
2021-03-01 10:39:46 +11:00
Audric Ackermann
0a539c79ce
on signup/register, set last_profile_update_timestamp to now()
2021-02-26 16:14:13 +11:00
Audric Ackermann
b6ff4dc186
always share profileKey if it is set
2021-02-26 16:07:13 +11:00
Audric Ackermann
43e2ca00ff
do not sync profileKey on sync => only on ConfigurationMessage
2021-02-26 12:08:07 +11:00
Audric Ackermann
fc24df00fb
always share our profileKey on outgoing messages
2021-02-26 11:48:08 +11:00
Audric Ackermann
01085244bd
split up registration signup tab logic to sub components
2021-02-26 11:27:29 +11:00
Audric Ackermann
641f9ee368
Fix the bug where if we leave and get added back, we get removed again
2021-02-25 17:31:18 +11:00
Audric Ackermann
c55f204440
Merge branch 'clearnet' into restore-handle-configuration
2021-02-25 16:36:03 +11:00
Audric Ackermann
08c41004a2
do not send expire timer to member added on closed group
2021-02-25 15:16:23 +11:00
Audric Ackermann
215cffdd75
address reviews
2021-02-25 14:48:11 +11:00
Audric Ackermann
e0c2cf8e9a
Force configuration message on avatar or display name update
2021-02-25 14:23:09 +11:00
Audric Ackermann
3f59ce1692
fix updates of message on message syncing
2021-02-25 12:59:18 +11:00
Audric Ackermann
a61f5e6814
add contacts to ConfigurationMessage
2021-02-25 12:50:23 +11:00
Audric Ackermann
0a82bf98fa
Add displayName and avatar pointer to ConfigurationMessage
2021-02-25 10:28:41 +11:00
Audric Ackermann
e466062f15
WIP
2021-02-23 14:22:01 +11:00
Audric Ackermann
ca22b4635f
fixup some building of sync message issues
2021-02-22 12:00:08 +11:00
Audric Ackermann
58cc6551e5
fix updates of message on message syncing
2021-02-22 09:58:29 +11:00
Audric Ackermann
5ab3680903
make OnionPath a singleton and build path on app Start only
2021-02-22 09:35:05 +11:00
Audric Ackermann
7a3a12ccdc
Merge branch 'clearnet' into move-models-to-ts-2
2021-02-19 17:53:26 +11:00
Audric Ackermann
8716fbf495
improve sent message handling by setting the correct convoId at start
2021-02-19 17:47:54 +11:00
Audric Ackermann
8a800cf58c
move the logic of handling when a message is sent to MessageSentHandler
2021-02-19 16:43:50 +11:00
Audric Ackermann
25e03eba35
fix lint
2021-02-19 15:13:43 +11:00
Audric Ackermann
3ee0ccfac8
remove the forceSave logic for a message, always insert or replace
2021-02-19 13:01:24 +11:00
Audric Ackermann
d844c5141e
remove unprocessed from store. Nothing was stored in the store
...
it was simply as passthrough to the Data file.
No we directly call the data file instead
2021-02-19 10:35:11 +11:00
Audric Ackermann
3f43ae48ad
WIP
2021-02-17 11:17:50 +11:00
Audric Ackermann
370158951a
move events from MessageQueue to MessageSentHandler
2021-02-16 18:12:49 +11:00
Audric Ackermann
a34720501c
update avatar on convo only if DL+decrypt is OK
2021-02-16 14:22:22 +11:00
Audric Ackermann
8ea9f02cec
Move data.js to data.ts
2021-02-15 15:16:52 +11:00
Audric Ackermann
7b81c4213a
Merge clearnet
2021-02-12 14:08:11 +11:00
Audric Ackermann
0c1343cad5
add a way to share currently distributing keypair to added members
2021-02-12 11:00:22 +11:00
Audric Ackermann
78e7255cb8
send the keypair to added members if we are admin
...
and remove request encryption keypair handling
2021-02-11 16:40:05 +11:00
Audric Ackermann
ebf9714e49
remove MessageQueueInterface
2021-02-11 15:00:52 +11:00
Audric Ackermann
2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2
2021-02-11 14:45:09 +11:00
Audric Ackermann
a31c457c08
allow closedgroup new message to be sent to our other devices
...
also, do not drop it on the receiving side
2021-02-11 14:04:08 +11:00
Audric Ackermann
375c5ba1a8
add the request and reply of an encryptionKeyPair if needed
2021-02-10 17:45:11 +11:00
Audric Ackermann
ed84760f0e
add a tslint rule to forbid use of async without await
2021-02-09 17:00:54 +11:00
Audric Ackermann
36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2
2021-02-09 15:54:34 +11:00
Audric Ackermann
df0b44db4c
Merge remote-tracking branch 'upstream/clearnet' into multi-device-v2
2021-02-09 13:46:06 +11:00
Audric Ackermann
ea2c4437a3
cleanup models with unused events
...
also, sort message from DB and on redux by sent_at or received_at when
not a public group
2021-02-09 11:40:32 +11:00
Audric Ackermann
20cf5dbf10
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2
2021-02-08 17:27:32 +11:00
Audric Ackermann
b76ce0f2ff
update models to TS part2
2021-02-08 16:18:36 +11:00
Audric Ackermann
65ed81e980
enable explicit group updates on the sending side
2021-02-08 15:37:40 +11:00
Audric Ackermann
5a7c8ffa35
fix previews sent on next message if they are resolved too late
2021-02-08 15:35:56 +11:00
Audric Ackermann
89ea946b3f
disable sending of explicit group updates for now - only receiving is ON
2021-02-08 15:35:22 +11:00
Audric Ackermann
267a3e6bf6
disable closedgroup update groups for now
2021-02-08 15:34:01 +11:00
Audric Ackermann
ebd94ce15c
fix order of added new group in leftPane
2021-02-08 15:33:39 +11:00
Audric Ackermann
3b3378a2ee
finish explicit group updates
2021-02-08 15:33:16 +11:00
Audric Ackermann
7054385d4a
remove body pending loading of message > 2000.
...
Also remove the limit when sending text messages
2021-02-08 15:23:23 +11:00
Audric Ackermann
a51f95d28c
move models to TS part1
2021-02-08 15:20:47 +11:00
Audric Ackermann
aede96b69b
enable explicit group updates on the sending side
2021-02-08 14:12:44 +11:00
Audric Ackermann
b88ea110e8
Add multi device v2 support
2021-02-08 11:56:14 +11:00
Audric Ackermann
64737a89d7
add ConfigurationMessage
2021-02-04 11:53:37 +11:00
Audric Ackermann
fb9f615a11
Merge remote-tracking branch 'upstream/clearnet' into fix-explicit-updates-not-yet-sending
2021-02-02 10:25:52 +11:00
Audric Ackermann
859cbfbe36
Merge pull request #1466 from Bilb/fix-link-previews
...
fix previews sent on next message if they are resolved too late
2021-02-02 10:23:48 +11:00
Audric Ackermann
ab8aa0d982
disable sending of explicit group updates for now - only receiving is ON
2021-02-01 16:40:23 +11:00
Audric Ackermann
2462e12a04
Merge pull request #1461 from Bilb/explicit-group-updates
...
Explicit group updates
2021-02-01 15:45:11 +11:00
Audric Ackermann
cdd6fb61eb
fix previews sent on next message if they are resolved too late
2021-02-01 14:45:46 +11:00
Audric Ackermann
7048f81214
disable closedgroup update groups for now
2021-02-01 13:14:19 +11:00
Audric Ackermann
c06f710b3b
fix order of added new group in leftPane
2021-02-01 13:12:44 +11:00
Audric Ackermann
334da0a169
finish explicit group updates
2021-02-01 11:35:06 +11:00
Audric Ackermann
46fdebe3d7
Merge pull request #1459 from Bilb/improve-open-group-loading-speed
...
Improve open group loading speed
2021-01-29 11:43:41 +11:00
Audric Ackermann
0e25ab2874
WIP
2021-01-29 11:29:42 +11:00
Audric Ackermann
6e11c6db2e
remove all reference to closed group update v2
2021-01-28 12:06:51 +11:00
Audric Ackermann
999e6fc712
replace GroupUpdateV2 in proto to ClosedGroupControlMessage
2021-01-28 11:39:07 +11:00
Audric Ackermann
3d47d7d0e8
remove EbeddedContact components
2021-01-28 10:52:16 +11:00
Audric Ackermann
02fb5783a4
remove regionCode and PhoneNumber.ts
2021-01-28 09:46:15 +11:00
Audric Ackermann
c7d6e940ce
speed up loading of messages by removing db call to fetch our pubkey
2021-01-27 18:09:46 +11:00
Audric Ackermann
e3a6e24898
remove body pending loading of message > 2000.
...
Also remove the limit when sending text messages
2021-01-27 15:26:30 +11:00
Audric Ackermann
ce8bc84de0
add way to add/remove moderators from the message click handler
2021-01-22 10:13:01 +11:00
Audric Ackermann
5c3cb0a165
make moderator dialogs the Session way
2021-01-21 17:49:14 +11:00
Audric Ackermann
a0703bc2f9
remove primary and secondary device separate status
2021-01-21 17:49:13 +11:00
Audric Ackermann
135fc3b366
remove prekeys
2021-01-21 17:49:07 +11:00
Audric Ackermann
fd18345c5a
remove handling of rss related things completely
2021-01-19 16:11:33 +11:00
Audric Ackermann
c0484207d1
Merge branch 'clearnet' into fix-ban-user
2021-01-19 15:44:29 +11:00
Audric Ackermann
21c3e4717e
Merge pull request #1434 from Bilb/remove-prekey
...
Remove prekeys message and Session managment.
2021-01-19 15:43:01 +11:00
Audric Ackermann
6dd9dde44f
increase closed group size limit to 100
2021-01-19 15:35:20 +11:00
Audric Ackermann
39c64b9fbf
toast adding moderator to remind that the user needs to be registered
2021-01-18 17:02:02 +11:00
Audric Ackermann
72c96ea998
remove most of the SessionProtocol unused stuff
...
- prekeys
- SessionCipher
- LokiCipher
- endSession and the reset Session logic
- what we called Sessionprotocol manager (to keep track of session with
everyone)
2021-01-18 10:58:34 +11:00
Audric Ackermann
979a9058e3
remove verified number - related features (partial)
2021-01-18 10:35:16 +11:00
Audric Ackermann
75b7788fa9
remove stuff related to web api
2021-01-15 10:56:49 +11:00
Audric Ackermann
f1d84177a0
fix expirationTimer updates closed group desktop to ios
2021-01-14 16:34:05 +11:00
Audric Ackermann
eb9828a3b7
fix tests
2021-01-14 10:44:15 +11:00
Audric Ackermann
6856c0e748
remove updateTextInputState not needed and add left to menu tests
2021-01-13 15:28:20 +11:00
Audric Ackermann
6cf838ade8
disallow remove of an admin from a closed group
2021-01-13 12:36:31 +11:00
Audric Ackermann
19f59ca41e
add some logs for message sending
2021-01-13 11:03:59 +11:00
Audric Ackermann
cbd0e63641
add admin dialog to warn him about leaving for v2 closed group
2021-01-13 11:02:22 +11:00
Audric Ackermann
d43ae09eb0
first working version of closed group v2
2021-01-12 16:56:21 +11:00
Audric Ackermann
9048913332
split conversation reducer for convo logic
...
also
- fix ordering of messages for open groups, when they are added
- fix the way the firstMessageOfSeries for just created clsoed groups
2021-01-07 10:51:20 +11:00
Audric Ackermann
2fe6b11e89
move ConversationController to typescript
2021-01-06 14:26:53 +11:00
Audric Ackermann
adf0d03d35
add test for the MessageEncrypter using Session protocol
2021-01-05 14:48:46 +11:00
Audric Ackermann
0a4cae4183
fix duplicates message for open groups
2020-12-17 15:07:32 +11:00
Audric Ackermann
2af4938ff2
fix SessionProtocol decrypt of messages with Android
...
also disable the old SessionRequest logic
2020-12-17 12:17:11 +11:00
Audric Ackermann
b0a229bf13
add Dialog on app start to ask to update SessionID
2020-12-16 16:35:30 +11:00
Audric Ackermann
1045bfeba8
add SessionProtocol wip
2020-12-16 13:56:29 +11:00
Audric Ackermann
cd3ec67099
add the encryptWithSessionProtocol method
2020-12-15 17:15:00 +11:00
Audric Ackermann
f28dfe5a94
use fallbacks for message even if we have a session with the device
2020-12-07 17:06:46 +11:00
Audric Ackermann
9fe87ca8c3
fix typing of MessageController
2020-12-02 16:23:58 +11:00
Audric Ackermann
4c0a988fe5
Move the metadata badges to use react functional components
2020-12-02 16:23:51 +11:00
Audric Ackermann
228e4ed662
move MessageController to typescript
2020-12-02 11:26:31 +11:00
Audric Ackermann
727261b36a
be sure to register outgoing message for medium groups when created
2020-12-01 17:14:43 +11:00
Audric Ackermann
60a4fcbfcc
small UI fixes for caption editor
2020-11-26 15:53:52 +11:00
Audric Ackermann
82b59f808d
no confirmation on message delete from the message detail view
2020-11-26 15:16:44 +11:00
Audric Ackermann
5e43210493
Merge branch 'clearnet' of github.com:loki-project/loki-messenger into react-refactor
2020-11-25 13:42:56 +11:00
Audric Ackermann
465c9dfa77
remove dirty hack used before we use the notify on PN
...
this was used to not trigger events when sending a control message
2020-11-25 13:25:59 +11:00
Audric Ackermann
80523a9a3e
rename MessageQueue event to be more easily searchable
...
success -> sendSuccess
fail -> sendFail
2020-11-25 12:26:42 +11:00
Audric Ackermann
cc049065da
do not use v3 for live.apns.getsession.org PN calls
2020-11-24 11:47:44 +11:00
Audric Ackermann
9f14924e65
push toast if gif size is too big
2020-11-23 17:05:41 +11:00
Audric Ackermann
da62ba6829
Merge remote-tracking branch 'upstream/clearnet' into react-refactor
2020-11-23 16:26:52 +11:00
Audric Ackermann
f2074f502a
Uniformize size of accepted attachment to 10MB
...
Some image files can be scaled automatically, so this size is not the
same for them, they will just be scaled down
2020-11-23 16:25:20 +11:00
Audric Ackermann
edd984e0f5
make quotes stay empty when there object isEmpty()
2020-11-19 11:56:34 +11:00
Audric Ackermann
b5af8eb215
Add Mentions with react-mentions
2020-11-18 15:27:13 +11:00
Audric Ackermann
828aa4413f
remove unused group_member_list component
2020-11-17 16:46:04 +11:00
Audric Ackermann
2f2eb2ad53
link back backbone conversation events to redux store
2020-11-13 17:17:48 +11:00
Audric Ackermann
f3430bdcb5
add toast on isBlocked, isKicked, ... for sending of messages
2020-11-12 14:39:37 +11:00
Audric Ackermann
30f93b2ad3
remove conversation stack
2020-11-11 10:01:17 +11:00
Audric Ackermann
190d597814
only trigger new msg on open group if we are still running
2020-11-10 17:33:44 +11:00
Audric Ackermann
c039c89a26
remove resetMessageSelection() as unused and cleanup toast
2020-11-10 16:15:27 +11:00
Maxim Shishmarev
27859b13aa
Added an option to use v3/lsrpc endpoint for more compact (base64) file reponses
2020-11-09 14:25:24 +11:00
Audric Ackermann
8710b7a9e8
medium group: send existing expiretimer to joining members if set
2020-11-09 13:58:37 +11:00
Audric Ackermann
545eef4edb
include expireTimer in group invitation message so it does not reset it
2020-11-09 12:06:26 +11:00
Audric Ackermann
e613613416
show toast with react-toastify and make them a styled-component
2020-11-09 11:25:57 +11:00
Audric Ackermann
6fd8ea20c7
fix restoring of session after restore from seed
2020-11-06 14:44:04 +11:00
Audric Ackermann
0b4400837b
fix scroll to quoted message and contact display name of group updates
2020-11-04 16:55:52 +11:00
Audric Ackermann
940ad57f83
rework the way unread count works
...
we no longer refresh on each message read, only once the whole
conversation is read.
2020-10-30 16:02:18 +11:00
Audric Ackermann
13e02b5bf1
add staged link previews for everything from signal
2020-10-28 11:06:47 +11:00
Audric Ackermann
12bf46e09e
use pushToast through ToastUtils when it's a static toast content
2020-10-27 12:56:32 +11:00
Audric Ackermann
79eae4838d
Merge remote-tracking branch 'upstream/clearnet' into react-refactor
2020-10-27 09:59:23 +11:00
Audric Ackermann
17ac8c4343
Merge remote-tracking branch 'upstream/clearnet' into react-refactor
2020-10-27 09:14:08 +11:00
Audric Ackermann
55fa65fc31
override attachments name on upload
2020-10-27 09:13:29 +11:00
Audric Ackermann
5de2dea407
use .ok field on serverRequest to check for request success
2020-10-26 10:35:33 +11:00
Audric Ackermann
fe3cfb9e82
move all menu to react-contexify
2020-10-22 16:34:41 +11:00
Audric Ackermann
2b13321c23
remove completely send to proxy
2020-10-22 09:58:32 +11:00
Audric Ackermann
4c91d977ca
move token and submit challenge call to onion request
2020-10-22 09:56:44 +11:00
Maxim Shishmarev
61897df7dd
Lint
2020-10-21 15:51:52 +11:00
Maxim Shishmarev
c5b2b64d7f
Add onions-v2 support for fileserver requests
2020-10-21 14:08:12 +11:00
Maxim Shishmarev
692a0e8cff
Optionally use v2 onions for snode requests
2020-10-21 14:08:12 +11:00
Audric Ackermann
b46ed237b3
allow empty message when they have attachments
2020-10-20 15:02:16 +11:00
Audric Ackermann
c5927cfc4b
focus composition box after adding an attachment
2020-10-20 14:31:10 +11:00
Audric Ackermann
363da7aa80
add back toast on attachment adding error
2020-10-20 14:07:48 +11:00
Audric Ackermann
026a1930ed
add a getOrThrow to ConversationController when we expect this convo
2020-10-15 17:19:49 +11:00
Audric Ackermann
144ae41529
add type for ConversationController, remove showStartConversation
...
and cleanup scss
2020-10-15 16:43:51 +11:00
Audric Ackermann
1a379d2466
add theme logic to switch between dark/light theme based on redux store
2020-10-15 10:07:38 +11:00
Audric Ackermann
6e07ee42f5
cleanup network status view and some UI constants
2020-10-13 13:57:43 +11:00
Audric Ackermann
4d991d3992
Merge branch 'clearnet' into react-refactor
2020-10-08 17:23:55 +11:00
Audric Ackermann
2f8f79c5d2
make message clearer when we try to reuse a keyIdx in the ratchet
2020-10-05 12:56:39 +11:00
Audric Ackermann
97eaf68085
clean getExistingSenderKeysForGroup as we don't need the diff anymore
2020-10-05 11:29:02 +11:00
Audric Ackermann
c0497e3df1
trigger senderKeyRequest if we get a DOMException on decryptGCM()
2020-10-05 11:16:13 +11:00
Audric Ackermann
05e682cdc2
enable back swarm polling when we get added back to a group
2020-10-05 10:53:09 +11:00
Audric Ackermann
cfb9e65f30
trigger new ratchet send on message sent success
...
send our new ratchet to all new members when we just sent a message
containing no senderKey in it.
an set but empty senderKey array should only be sent when a user left or
was removed.
2020-10-02 14:27:46 +10:00
Audric Ackermann
e0e0830d3b
remove all ratchet when needed to get fresh senderKey from members
2020-10-01 16:13:26 +10:00
Audric Ackermann
5d7d66f65a
fix bug making session request being sent for medium group create
2020-10-01 15:13:06 +10:00
Audric Ackermann
a80f9a5965
fix medium group to match mobile way
2020-10-01 15:12:51 +10:00
Audric Ackermann
06d0683ce5
WIP
2020-09-30 10:23:27 +10:00
Audric Ackermann
22afe50c05
make messageQueue handle medium group message in sendToGroup
2020-09-30 10:22:36 +10:00
Audric Ackermann
d4e9b43f0c
remove QUIT type of mediumgroupupdate
2020-09-30 10:14:19 +10:00
Audric Ackermann
53a14a0b60
add prefix to ExpirationTimerUpdateMessage for closed group too
2020-09-25 10:53:21 +10:00
Audric Ackermann
d12e0500af
mark node as bad if it returns difficulty 100
2020-09-23 11:43:47 +10:00
Audric Ackermann
3a876c7322
add notify to PN server on message sent
2020-09-21 12:26:23 +10:00
Audric Ackermann
514eb9ba98
fix pubkey regex for mobile medium groups
2020-09-17 19:46:06 +10:00
Audric Ackermann
215c964fab
fix padding for medium group
2020-09-17 19:36:58 +10:00
Audric Ackermann
8123508b51
fix avatar closed group and pubkey for medium mobile groups
2020-09-17 19:36:46 +10:00
Audric Ackermann
d6e8247016
Merge pull request #1339 from Bilb/add-back-copy-session-id
...
add back Copy Session ID but show it only for user context click
2020-09-15 16:42:34 +10:00
Audric Ackermann
cd1a940719
add back Copy Session ID but show it only for user context click
2020-09-15 10:32:16 +10:00
Audric Ackermann
ff1c554e8a
make MediumGroupChatMessage share impl with ClosedGroupChatMessage
2020-09-15 09:40:50 +10:00
Audric Ackermann
04063cd0fb
make medium group pubkey be in bytes rather than str
2020-09-15 09:04:10 +10:00
Audric Ackermann
7054268b14
use source from decoded content and not envelope on ssk
2020-09-14 12:15:22 +10:00
Audric Ackermann
84c7ce006b
fix ctx menu on repeated block/unblock
2020-09-09 11:16:33 +10:00
Audric Ackermann
d3badba681
hide reset session from menu when user is blocked
2020-09-09 10:48:26 +10:00
Audric Ackermann
c34edee180
Merge pull request #1321 from Bilb/use-created-at-server-timestamp
...
Fixes #1249
2020-09-08 15:15:01 +10:00
Audric Ackermann
1e446b0a81
fix order for open groups message which are out of sync
2020-09-08 09:37:51 +10:00
Audric Ackermann
7501d71542
fix polling logic on network errors #995
2020-09-07 14:17:59 +10:00
Audric Ackermann
0721d469db
increase timeout allowed for joining open group
2020-09-02 15:49:43 +10:00
Audric Ackermann
0e75510e5b
remove ttl unused settings and all translated key
2020-09-01 11:14:59 +10:00
Audric Ackermann
73e2250ca8
add submenu rtl support (disabled for now)
2020-08-31 14:53:17 +10:00
Audric Ackermann
5739d78ada
edit group editing title to match Android
2020-08-18 11:35:58 +10:00
Audric Ackermann
90fac8f75e
show group members => groupmember
2020-08-17 11:44:51 +10:00
Audric Ackermann
70b739d24f
update translation to match android - part 1
2020-08-17 11:36:25 +10:00
Audric Ackermann
ad4c024530
Merge remote-tracking branch 'upstream/clearnet' into make-cheap-translations
2020-08-14 14:31:33 +10:00
Audric Ackermann
13b28e565d
hide copy option for closed group
2020-08-14 11:25:54 +10:00
Audric Ackermann
d108630f22
add a toastUtils file and replace all pushToast calls in ts files
2020-08-14 10:56:22 +10:00
Audric Ackermann
e008dbd0d5
"leave {Closed|Open} Group" => "leave group"
2020-08-14 10:07:47 +10:00
Audric Ackermann
71004f04a2
add a getDeleteMenuItem and hide on open groups as
...
leave and delete messages does the same in fact
2020-08-13 16:45:11 +10:00
Audric Ackermann
cf3352d0af
add a timeout function to promiseUtils for attemptConnection
2020-08-13 15:30:44 +10:00
Audric Ackermann
3945c6b208
Merge remote-tracking branch 'upstream/clearnet' into react-refactor
2020-08-10 10:51:33 +10:00
Audric Ackermann
58dd064e93
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests
2020-08-07 10:00:37 +10:00
Audric Ackermann
3e56eb6133
add beta german translation copy pasted from android
2020-08-05 16:58:36 +10:00
Mikunj
c0fca99485
Disable multi device
2020-08-04 11:23:48 +10:00
Audric Ackermann
933eb73aa1
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests
2020-08-03 11:48:00 +10:00
Audric Ackermann
6d65c9cc0a
make sendMessage return -1 on fail rather than false
2020-07-31 11:37:59 +10:00
Audric Ackermann
44349079ab
fix delete of open group messages
2020-07-31 09:49:36 +10:00
Audric Ackermann
64dff64925
fix mentions notification displayname rather than pubkeys
...
* replace @pubkeys with their corresponding display name if found
* fix the display of the @ sign on the conversationListItem
2020-07-29 15:22:49 +10:00
Audric Ackermann
708a999ff6
fix caption for attachments when they are set
2020-07-29 12:07:06 +10:00
Maxim Shishmarev
d95dfdc04a
Merge pull request #1280 from msgmaxim/medium-group-fixes
...
Medium group protocol changes
2020-07-28 14:23:58 +10:00
Maxim Shishmarev
db05592400
Address review comments
2020-07-28 12:13:41 +10:00
Audric Ackermann
ad24ad28d6
Merge pull request #1284 from Bilb/fix-ttl-ugly-hack
2020-07-27 16:52:48 +10:00
Audric Ackermann
eb06356b26
Merge pull request #1277 from Bilb/fix-blocklist-handle
2020-07-27 16:52:40 +10:00
Audric Ackermann
8558764768
fix open group integration tests
2020-07-27 11:27:37 +10:00
Audric Ackermann
52cb50f063
make lokiPlainFetch return a SnodeResponse object
2020-07-27 10:59:29 +10:00
Audric Ackermann
38724d0992
filter convos to block sync by getting list from BlockedNumberController
2020-07-27 08:57:44 +10:00
Maxim Shishmarev
f1bc0ffc27
Fix export for file onions
2020-07-24 17:29:43 +10:00
Audric Ackermann
401c37c39e
make standardized menu, use them in ConversationHeader
...
and ConversationListItem
2020-07-24 16:40:44 +10:00
Audric Ackermann
394030b711
remove getDefaultTTL and use Constants values instead
2020-07-24 15:37:28 +10:00
Audric Ackermann
48edd431da
use constants rather than string for ttl
2020-07-24 15:29:33 +10:00
Audric Ackermann
467f96acac
substract 1 hour for control of ttl message so PN can ignore them
2020-07-24 14:48:56 +10:00
Audric Ackermann
ce6263dc21
share ContextMenu item tests for ConversationListeItem and ConversationHeader
2020-07-24 11:24:37 +10:00
Audric Ackermann
8105f0647a
make a few unit tests quicker by polling more aggressively on results
2020-07-23 16:49:53 +10:00