Commit graph

1067 commits

Author SHA1 Message Date
Audric Ackermann
099c9a6f8c
autobind class with a lot of ...bind(this) 2021-03-16 13:34:05 +11:00
Audric Ackermann
c017683b0e
Merge pull request #1530 from Bilb/improve-redux-speed
Improve redux speed
2021-03-16 11:21:12 +11:00
Audric Ackermann
24a67a1ec3
record voice message as opus 2021-03-16 11:00:22 +11:00
Audric Ackermann
bc6c29d634
qrcode seed dialog shows seed as an hex encoded string 2021-03-05 15:26:13 +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
e1114c8ce7
add some types to Data.ts calls 2021-03-05 09:24:25 +11:00
Audric Ackermann
56c4065abd
move some types from dep to dev dependencies 2021-03-04 13:05:27 +11:00
Audric Ackermann
8c33d89057
make AccountManager functions only rather than full static class 2021-03-04 11:06:44 +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
78257037bb
restoreFromSeed restores groups from first configMessage got 2021-03-03 12:00:41 +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
e930348684 handle Enter Key on the signin tab 2021-03-02 16:49:41 +11:00
Audric Ackermann
c420bfcf74 only handle a single time the groups from a configurationMessage 2021-03-02 16:06:30 +11:00
Audric Ackermann
a04bc0d225 center notification icon on settings and make label clickable 2021-03-02 15:25:38 +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
c656dd25cf move configMessage handling to a another file 2021-03-02 11:27:20 +11:00
Audric Ackermann
6a998111c7 add a qrcode to scan mnemonic/seed in dialog 2021-03-02 10:35:35 +11:00
Audric Ackermann
853222d25b Do not sync configurationMessage on app load if restored from seed 2021-03-01 17:55:41 +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
e6cf28cb2a prettier on pre-commit 2021-03-01 12:05:39 +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
619a894b52
fix up Signup 2021-02-26 15:58:21 +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
e466062f15 WIP 2021-02-23 14:22:01 +11:00
Audric Ackermann
4d6fcda668 fix typo SessionLastSeedIndicator => SessionLastSeenIndicator 2021-02-22 13:52:05 +11:00
Audric Ackermann
6ed4511c21 be sure to hide emjipanel when sending a message 2021-02-22 12:41:00 +11:00
Audric Ackermann
ca22b4635f fixup some building of sync message issues 2021-02-22 12:00:08 +11:00
Audric Ackermann
e92632285b init messageQueue in the ActionsPanel
This is to unsure that unsent messages in the pipeline are added to the
pipeline right when we start the app again
2021-02-22 11:07:58 +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
370158951a move events from MessageQueue to MessageSentHandler 2021-02-16 18:12:49 +11:00
Audric Ackermann
2a1d68401d Allow allow one group creation at a time 2021-02-15 17:16:16 +11:00
Audric Ackermann
8ea9f02cec Move data.js to data.ts 2021-02-15 15:16:52 +11:00
Audric Ackermann
850233bc9e review PR 2021-02-10 10:31:48 +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
f41bf31515
fix tests 2021-02-09 12:42:41 +11:00
Audric Ackermann
6edcb88788
remove resend as it does not make any sense with medium groups
and sendAnyway
2021-02-09 11:38:11 +11:00
Audric Ackermann
b76ce0f2ff
update models to TS part2 2021-02-08 16:18:36 +11:00
Audric Ackermann
49ca1a0f82
fix registration continue your session button not shown for recovery 2021-02-08 15:35:57 +11:00
Audric Ackermann
85b9f22b04
allow back to leave an open group 2021-02-08 15:35:57 +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
846f396545
show Delete conversation menu when we got removed from the group too 2021-02-08 15:35:54 +11:00
Audric Ackermann
1d5d098b06
be able to remove a closed group once we left it already 2021-02-08 15:35:28 +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
0fe026ab15
Fix the password length limit when not setting a new password
Relates #1446
2021-02-08 15:21:14 +11:00
Audric Ackermann
a51f95d28c
move models to TS part1 2021-02-08 15:20:47 +11:00
Audric Ackermann
b88ea110e8
Add multi device v2 support 2021-02-08 11:56:14 +11:00
Audric Ackermann
83c852ca60
fix registration continue your session button not shown for recovery 2021-02-02 16:04:50 +11:00
Audric Ackermann
d60e34017a
allow back to leave an open group 2021-02-02 11:09:13 +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
e34ffb89fc
Merge pull request #1467 from Bilb/fix-delete-group-menu-left
Be sure to show a right click menu to delete a closed group when we already left it
2021-02-02 10:23:36 +11:00
Audric Ackermann
446a1ecefb
show Delete conversation menu when we got removed from the group too 2021-02-01 17:07:44 +11:00
Audric Ackermann
6ed5f505c3
be able to remove a closed group once we left it already 2021-02-01 15:07:59 +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
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
02fb5783a4
remove regionCode and PhoneNumber.ts 2021-01-28 09:46:15 +11:00
Audric Ackermann
13df6c476e remove isClosable for convo as it is unused 2021-01-27 18:04:32 +11:00
Audric Ackermann
b218611831 remove contactCollection in convos. 2021-01-27 16:12:32 +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
43ec14e741 Fix the password length limit when not setting a new password
Relates #1446
2021-01-27 11:00:32 +11:00
Audric Ackermann
d655c397e0
make the isAdmin coming from the convo props and not the messages 2021-01-22 11:09:34 +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
46dfb3489b
remove mock sockets and websockets unused resources 2021-01-19 16:01:53 +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
20c806be2d
fix being able to remove messages from anyone as a moderator 2021-01-19 15:24:15 +11:00
Audric Ackermann
dc0733968d
make moderators and groupAdmins a single name 2021-01-19 13:57:05 +11:00
Audric Ackermann
6a776b56f6
fix ban of users on open group 2021-01-19 11:25:14 +11:00
Audric Ackermann
3476b54d43
fix add/remove moderators dialog and open groups name avatar dialog 2021-01-18 15:51:56 +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
58be168227 drop groupUpdates which happened before we joined the group 2021-01-14 14:37:09 +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
8e9de59a42
remove isOnline unused 2021-01-13 12:38:41 +11:00
Audric Ackermann
6cf838ade8
disallow remove of an admin from a closed group 2021-01-13 12:36:31 +11:00
Audric Ackermann
e6c2abff48
mandatory upgrade of session ids are now in force 2021-01-13 11:02:41 +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
d2fab26a5d
ignore arrows events when the textarea is selected
Fixes #1416
2021-01-05 15:25:59 +11:00
Audric Ackermann
16c9bf27c9
remove linebreaks on pasted value on open group join textarea
Relates  #1413
2021-01-05 14:53:06 +11:00
Audric Ackermann
adf0d03d35
add test for the MessageEncrypter using Session protocol 2021-01-05 14:48:46 +11:00
Audric Ackermann
c9fd261e0e
fix color no opacity for recording playback view
having an opacity on the bg color was making the source-atop composition not visible with the sweeping color
2021-01-04 12:09:50 +11:00
Audric Ackermann
02ca99c96f
fix media permissions check only when requested
the old way was to run the check on the componentWillMount,
but sometimes the settings was returning null as the storage was not
ready yet, I guess
2021-01-04 10:47:00 +11:00
Audric Ackermann
2a02b5498b
enable back spellcheck for textarea message 2020-12-17 17:04:23 +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
10307bac38 fix lint 2020-12-15 11:03:21 +11:00
Audric Ackermann
3e01eee207
fix color of icon compose on dark theme
cross color is always white as the background is black
2020-12-14 22:27:53 +11:00
Audric Ackermann
fdcb02bfdc
remove Section header rendering from static method, just render JSX 2020-12-14 22:20:09 +11:00
Audric Ackermann
add1c2dd39
reset the highlighted message after 3 sec
Before this commit, when a users clicks on a quoted message, the UI
takes it to that message. If the user clicks again on the quoted
message, the green highlight of the quoted message is not shown again.
This was like this, because the highlight is based on a state change,
and clicking on the same highlighted message, does not update the state
as the clicked quoted message is still the same.

The fix is to reset the highlighted message on the state object after
the animation is done
2020-12-14 17:02:28 +11:00
Audric Ackermann
e9f186065d
do not shrink SessionSpinner 2020-12-14 16:23:59 +11:00
Audric Ackermann
5109f9fdda
remove ConversationLoadingScreen (unused) 2020-12-14 16:23:27 +11:00
Audric Ackermann
a941e73f7b
fix bug of voice message not received, the size was not included 2020-12-14 14:39:53 +11:00
Audric Ackermann
2bcc7be3e6
remove mp3 lame already file and webrecorder worker unused 2020-12-14 14:38:05 +11:00
Audric Ackermann
7da988c132
fix up session logo on loading and max message body length 2020-12-09 13:01:48 +11:00
Audric Ackermann
c9fc3be6c3
make message about not being able to recover SessionID more obvious 2020-12-08 15:54:45 +11:00
Audric Ackermann
dd4f591cf4
deleteAccount => show warning when recover will generate new SessionID 2020-12-08 15:04:46 +11:00
Audric Ackermann
a23d5cd95c
fix theme for SessionRecording 2020-12-08 13:22:15 +11:00
Audric Ackermann
4a58b2c9f6
do not fail if a message has a list of empty attachment 2020-12-08 09:44:18 +11:00
Audric Ackermann
a58a1a4fba fix text color of expire timer when image only message 2020-12-07 15:03:55 +11:00
Audric Ackermann
cb2f90f7f7
make SessioNotificationCount a styled component 2020-12-04 18:01:51 +11:00
Audric Ackermann
e1fbcade0f
move expiretimer bucket svg to ts & style them with styled-components 2020-12-04 14:48:11 +11:00
Audric Ackermann
15ae97e0a7
use OutgoingMessageStatus in ConversationListItem too
also, enable back the delivered/read status on message metadata
2020-12-04 10:53:28 +11:00
Audric Ackermann
0a6a49eda5 Add an Outgoing Message Status react component 2020-12-03 16:25:41 +11:00
Audric Ackermann
788cb2a5fc fetch theme for each dialog, as they are out of the themed tree for now 2020-12-03 13:47:32 +11:00
Audric Ackermann
e38be266c2 major rework of session icon => make them styled with styled-component 2020-12-03 12:09:39 +11:00
Audric Ackermann
3bc041f512
change header of password entered on registration to just 'password' 2020-12-02 18:12:19 +11:00
Audric Ackermann
4c0a988fe5
Move the metadata badges to use react functional components 2020-12-02 16:23:51 +11:00
Audric Ackermann
8cc2cd6581
rename textPending to bodyPending
not even sure we need it for Session
this is used when the users sends a really large body => it is sent as
an attachment
2020-12-02 16:20:47 +11:00
Audric Ackermann
29eb528d1f
remove signal gear icon, and show back ours on calculatingPow
this is used for a message in the message list and in the conversation
list item
2020-12-02 11:27:15 +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
f9783be764
various UI fixes
* hide borders of images in bg when in the message details view
* force color of caption edits to white, as the background is grey and
it is more readable
* fix a bug preventing to quote the same message twice when switing
between two conversation after starting to quote one
2020-12-01 11:24:07 +11:00
Audric Ackermann
88cd58e7ff
trigger theme switch with user theme on app start 2020-12-01 11:15:51 +11:00
Audric Ackermann
d729e49840
update to latest major version of react-contexify 2020-12-01 10:32:56 +11:00
Audric Ackermann
e8677eef8c add back bump typing to CompositionBox 7 show bubbles on direct convo 2020-11-30 11:10:10 +11:00
Audric Ackermann
08d8b90aaa
add animation on click on quoted message just like on mobile 2020-11-27 18:05:46 +11:00
Audric Ackermann
9f0fd6fa8a
fix mentions shows display name in composition box but sends user id 2020-11-27 14:32:06 +11:00
Audric Ackermann
1bb99ac3df
enable back media switch on lightbox opened from a message
with several attachments
2020-11-26 16:05:07 +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
c1c1cde14b
improve caption editor, and disable right panel if messagedetails shown 2020-11-26 14:24:29 +11:00
Audric Ackermann
20496c45d6
remove sendAnyWay and showSafetyNumber from props of MessageDetails 2020-11-25 14:17:16 +11:00
Audric Ackermann
22b4f39e52
MessageDetails: contact status fallbacks to message status
this is used for medium groups
2020-11-25 13:25:08 +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
5c55a9411f
add first step to enable back MessageDetails.
Still not much the react way to do it for now
2020-11-25 11:52:20 +11:00
Audric Ackermann
291d4682e4
fix some tests 2020-11-25 09:14:22 +11:00
Audric Ackermann
51ea762bce
enable save of attachments on click on single generic attachment 2020-11-24 16:40:55 +11:00
Audric Ackermann
2ec337dd31
Add back ability to edit caption before sending attachments 2020-11-24 16:12:28 +11:00
Audric Ackermann
f673589c56
add types for blueimp-load-image 2020-11-24 13:19:21 +11:00
Audric Ackermann
9f14924e65
push toast if gif size is too big 2020-11-23 17:05:41 +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
97ff60f3bb
reset input for selecting file on file choosen on CompositionBox 2020-11-23 15:01:28 +11:00
Audric Ackermann
a1d4dea845
fix scrolling to unread and marking message as read on scrolling
we need to hit the bottom for the convo to update currently

add smooth scrolling on click on quoted message
2020-11-23 10:48:36 +11:00
Audric Ackermann
d533a3aca5
fix unread message banner for MessagesList 2020-11-20 12:17:42 +11:00
Audric Ackermann
535b1d59ef
add a reset conversation action type and call it on message destroyed 2020-11-19 15:55:03 +11:00
Audric Ackermann
1fd15ac977
Make SettingsView refresh on conversation change 2020-11-19 14:57:26 +11:00
Audric Ackermann
a695528d09
focus composition box on attachment added 2020-11-19 14:31:34 +11:00
Audric Ackermann
7a81c78382
focus composition box on conversation change 2020-11-19 14:26:36 +11:00
Audric Ackermann
4d9371dfe7
fix SessionRegistrationView missing from signal.js 2020-11-19 13:55:01 +11:00
Audric Ackermann
7b3981207e
fix password dialog 2020-11-19 13:49:53 +11:00
Audric Ackermann
f8f15cb9f7
fix remove message for public groups 2020-11-19 13:26:59 +11:00
Audric Ackermann
531b227ae4
clean unused files and fix recovery dialog showing 2020-11-19 09:14:48 +11:00
Audric Ackermann
1503d83f3a
add ourPrimary convo to redux and update the actionPanel with it 2020-11-18 18:48:20 +11:00
Audric Ackermann
c203303c71
rename SessionConversationMessagesList to SessionMessagesList 2020-11-18 16:33:33 +11:00
Audric Ackermann
935f00934b
add a key to all messages printed in SessionMessagesList 2020-11-18 16:32:08 +11:00
Audric Ackermann
c9e81454fb
make mentions work in react when emoji inserted inside at a rand pos 2020-11-18 16:26:41 +11:00
Audric Ackermann
b5af8eb215
Add Mentions with react-mentions 2020-11-18 15:27:13 +11:00
Audric Ackermann
b2e362a36b
add a useInterval hook and move useNetwork hook to the hook folder 2020-11-18 14:40:59 +11:00
Audric Ackermann
0beb47e597
add messageDeleted redux action 2020-11-17 13:30:24 +11:00
Audric Ackermann
e1548b66e4
enable back drag events as now the SessionConversation updates only 2020-11-17 11:55:01 +11:00
Audric Ackermann
d2ada105ed
make session dropdown use hooks 2020-11-17 10:51:39 +11:00
Audric Ackermann
6e14718a32
reactity the expired Session version warning 2020-11-16 17:33:09 +11:00
Audric Ackermann
977569cde0
move offline network view to react 2020-11-16 15:32:53 +11:00
Audric Ackermann
f9ab90fb71
link backbone message added to redux 2020-11-16 14:45:13 +11:00
Audric Ackermann
2f2eb2ad53
link back backbone conversation events to redux store 2020-11-13 17:17:48 +11:00
Audric Ackermann
918eeae275
move InboxView to react 2020-11-13 14:29:59 +11:00
Audric Ackermann
2ae7a6dfe5
cleanup message.js and conversation_view.js 2020-11-12 15:40:07 +11:00
Audric Ackermann
d94d2819ce
use placeholder when convo blocked in composition box 2020-11-12 15:10:37 +11:00
Audric Ackermann
f3430bdcb5
add toast on isBlocked, isKicked, ... for sending of messages 2020-11-12 14:39:37 +11:00
Audric Ackermann
e45ce43e01
store messages currently loaded in convo on redux 2020-11-12 12:18:50 +11:00
Audric Ackermann
221f264de6
rename all saveMessage to message.commit() 2020-11-12 09:21:19 +11:00
Audric Ackermann
5122433eb4
remove message_list_view.js and replace saveMessage with a commit() 2020-11-12 09:10:51 +11:00
Audric Ackermann
30f93b2ad3
remove conversation stack 2020-11-11 10:01:17 +11:00
Audric Ackermann
b9c4394b27
SessionConversation, render MessageView if no conversationModel found 2020-11-11 09:44:04 +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
Audric Ackermann
209fe460e4
lint and fix toast blur when dialog shwon 2020-11-10 14:55:10 +11:00
Audric Ackermann
a5a7b38da9
add autoFocus feature to SessionInput 2020-11-09 16:33:25 +11:00
Audric Ackermann
357421f161
rename window.console.log to window.log.info 2020-11-09 14:28:02 +11:00
Audric Ackermann
21a97ba0ec
fix deleteMessages from headermenu and load unread_count message on show 2020-11-09 11:58:51 +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
72b6538679
render unreadBanner at top of the message list if unread is not found 2020-11-06 15:17:52 +11:00
Audric Ackermann
9192c7b7d3
auto close session seed modal on copy 2020-11-06 15:13:16 +11:00
Audric Ackermann
6fd8ea20c7
fix restoring of session after restore from seed 2020-11-06 14:44:04 +11:00
Audric Ackermann
3d11271471
fix position of unread banner on conversation (search for first read) 2020-11-05 12:11:03 +11:00
Audric Ackermann
c0cf53cdfa
enable back the logic of displaying avatar for first message in serie 2020-11-04 17:43:45 +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
dfbcf3ac9b
do not remove convo when removing only message
use the user pubkey if group update notification with an unknown user
make GroupNotification a function component
2020-11-04 13:06:00 +11:00
Audric Ackermann
95101bfd3c
allow overlay message section to switch between join to newmessage 2020-11-04 11:43:15 +11:00
Audric Ackermann
113e91aa4b
contact section updates on menu right click block 2020-11-04 11:35:11 +11:00
Audric Ackermann
94b445983d
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-11-04 10:31:23 +11:00
Audric Ackermann
aad2d3232a
be able to show right panel for users too (and display convo medias) 2020-11-04 09:44:06 +11:00
Audric Ackermann
3f538b9be1
render Session Verification Messages 2020-11-04 09:17:02 +11:00
Audric Ackermann
dad9e5297c
make the last seen indicator work as expected 2020-11-02 14:03:11 +11:00
Audric Ackermann
35ad4cba24
add a react component to display last read message 2020-11-02 10:57:19 +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
5a5d1d60c6
fix scroll hanging when scroll all the way up 2020-10-30 11:03:21 +11:00
Audric Ackermann
dd93a849d7
cleanup duplicated code between Conversation and ConversationList 2020-10-30 10:59:24 +11:00
Audric Ackermann
07c384aa0d
render GroupNotification messages 2020-10-30 10:24:53 +11:00
Audric Ackermann
96263b4d25
WIP 2020-10-30 08:27:35 +11:00
Audric Ackermann
387f8ff391
Update props of SessionConversation to only get the currently selected convo 2020-10-29 16:23:25 +11:00
Audric Ackermann
e0fd910fa4
move a part of SessionSrollButton to styled component 2020-10-29 14:53:27 +11:00
Audric Ackermann
1f2c01722a
move to new identity key mechanism
now we do as followed:
• Generate 16 bytes of random data
• Add 16 bytes of zeros
• Use the 16 bytes of random + 16 bytes of zeros to generate an ED25519 key pair
• Convert the ED25519 key pair to an X25519 key pair

All of this is happening with libsodiumm called over IPC
2020-10-29 13:36:40 +11:00
Audric Ackermann
857bea50ea
enable back keyboard navigation on message list 2020-10-28 15:16:10 +11:00
Audric Ackermann
6edadaf3e9
message container use column reverse to order messages from bottom to
top
2020-10-28 14:28:10 +11:00
Audric Ackermann
ef3f3d0af5
enable back link previews in sent message 2020-10-28 14:11:57 +11:00
Audric Ackermann
1541b47f13
throw an error rather than returning null on link preview failure
so that it is handled in the catch() block
2020-10-28 13:40:30 +11:00
Audric Ackermann
ba959f3379
link preview state moved to SessionCompositionBox 2020-10-28 13:29:45 +11:00
Audric Ackermann
13e02b5bf1
add staged link previews for everything from signal 2020-10-28 11:06:47 +11:00
Audric Ackermann
f5818817e9
remove references to old emoji-panel package 2020-10-27 14:32:59 +11:00
Audric Ackermann
8f92ae7812
fix tiny UI glitches 2020-10-27 14:13:16 +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
a0e5c7386f
delete messages needs to be called once the message is selected 2020-10-27 12:38:48 +11:00
Audric Ackermann
55fa65fc31
override attachments name on upload 2020-10-27 09:13:29 +11:00
Audric Ackermann
8abd6a0e21
fix issue with contextmenu on scroll causing UI to break 2020-10-26 16:38:41 +11:00
Audric Ackermann
a7c4ce77a1
enable back attachments download on context menu 2020-10-26 16:38:06 +11:00
Audric Ackermann
f166ec814e
pass selectiomMode without selectedMessage props to ConversationHEader 2020-10-26 09:59:56 +11:00
Audric Ackermann
fe3cfb9e82
move all menu to react-contexify 2020-10-22 16:34:41 +11:00
Audric Ackermann
700a93362e
move drop file logic to SessionConversation component
Having it in another component was causing issues like not being able to
scroll on the conversation list even if the component was not shown
2020-10-21 15:51:13 +11:00
Audric Ackermann
a7bdc93ca8
working drag and drop, but no scrolling on the conversation messages 2020-10-21 10:35:21 +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
6cf69a1337
make adding of attachment work on react conversation 2020-10-20 13:20:09 +11:00
Audric Ackermann
2a155a0f43
fix lightbox for single attachment display and download 2020-10-20 08:48:15 +11:00
Audric Ackermann
fcf13c7467
relink lightbox from signal to our app 2020-10-19 15:23:35 +11:00
Audric Ackermann
ddf41de3fb
add csp for image load from blob so attachments are loaded correctly 2020-10-19 09:35:16 +11:00
Audric Ackermann
b1cac5f01b
fix ordering of message with more recent at bottom of the view 2020-10-16 15:12:41 +11:00
Audric Ackermann
c41eaada25
move display of message list to a subcomponent 2020-10-16 14:54:31 +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
b7f5a32570
add reply to message UI logic 2020-10-15 11:18:37 +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
6c7f1598b7
add a flex component using styled 2020-10-15 10:01:00 +11:00
Audric Ackermann
6e07ee42f5
cleanup network status view and some UI constants 2020-10-13 13:57:43 +11:00
Audric Ackermann
a652ec3b61
fix light theme in react refactor 2020-10-09 13:30:10 +11:00
Audric Ackermann
4d991d3992
Merge branch 'clearnet' into react-refactor 2020-10-08 17:23:55 +11:00
Audric Ackermann
dfff6c2149
Merge pull request #1374 from Bilb/hide-shorten-pubkey-except-public 2020-10-08 09:53:43 +11:00
Audric Ackermann
b050a3740d
clean all updateConversation calls to convo.commit() 2020-10-07 15:25:57 +11:00
Audric Ackermann
f57c85dc0d
hide pubkey when not needed on conversationHeader and listItem 2020-10-06 15:45:27 +11:00
Audric Ackermann
16b8fc8620
hide shortened pubkey except for public groups 2020-10-06 14:17:23 +11:00
Audric Ackermann
232b1a416a
do not refresh group panel media if length of media did not change 2020-10-05 15:14:06 +11: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
baaca1a29f
switch medium or closed group deeper in code 2020-10-01 15:05:25 +10:00