Commit Graph

75 Commits

Author SHA1 Message Date
Audric Ackermann cf44896a03
Minor call tweaks (#2051)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety
2021-11-29 17:40:46 +11:00
Ian Macdonald a32f946332
Make the [Home] and [End] keys scroll the conversation.
[End] will scroll to the end of the current conversation, because the
latest message is always available.

[Home], however, will scroll only to the top of the currently loaded
messages, triggering earlier messages to load. Multiple presses of
[Home] are therefore required to get to the start of the conversation.
2021-10-28 16:10:01 +02:00
Audric Ackermann 80aa672034
link pgup and down in messages list
Fixes #1919
2021-10-18 17:34:23 +11:00
Audric Ackermann 8f3b6d9ab2
add wip of call missed notification 2021-10-18 15:38:49 +11:00
Audric Ackermann fa32e61982
network delete_all force retries if we get a 421 2021-09-29 17:04:38 +10:00
audric a30876fd65 removed the enum from SessionIconType. Just rely on the type itself 2021-08-30 17:57:31 +10:00
audric 2e9cd0ada6 add date break with full date when older than a week 2021-08-27 14:02:52 +10:00
audric 2825b66ef6 add screen break for jump in messages timestamp 2021-08-27 12:49:33 +10:00
audric 40566a58a4 moved the unread indicator to outside of message items 2021-08-27 11:38:02 +10:00
audric 7fa50b4a73 do not pass props not needed between message list components 2021-08-26 16:17:37 +10:00
Audric Ackermann 2c174bdac7
fix audio message autoplay as broken with perf improvements
fix bug making "trust contact" first audio message being played on click
to trust
2021-08-02 14:32:38 +10:00
audric bfc4b2b720 lint 2021-07-22 16:34:17 +10:00
audric 12ff3379e1 add key for all messages list so we can scroll to them programnatically 2021-07-22 15:04:46 +10:00
audric 8766cf3f8a store offset before refresh of messagesList and restore it 2021-07-22 14:40:35 +10:00
audric c8f0150aaf fix unread banner position when first unread is visible 2021-07-22 12:30:01 +10:00
audric c2b5ac68d6 don't rely on scrollheight to calculate for ui Updates
as it causes a layout complete refresh
2021-07-22 10:20:09 +10:00
audric e72885944b use selector to sort and add first of serie flag 2021-07-21 17:14:14 +10:00
audric 6d34a60f94 improve performance by not loading all unread messages 2021-07-21 13:40:21 +10:00
audric 4f5072ee65 Merge remote-tracking branch 'upstream/clearnet' into perf-improv 2021-07-21 09:47:10 +10:00
audric 23e9a6d31c move some actions to redux in hooks 2021-07-20 16:58:51 +10:00
Audric Ackermann 0e4d7ec21a
WIP 2021-07-16 09:34:32 +10:00
Audric Ackermann a54345a42e
put back quote a message logic with hook 2021-07-14 16:36:55 +10:00
Audric Ackermann 9a380b716b
put saveAttachemntToDisk outside of component 2021-07-14 15:57:03 +10:00
Audric Ackermann 4ca5a4f093
fixup selected message in redux logic 2021-07-14 11:48:57 +10:00
Audric Ackermann 16d34a7137
moved conversations reducer to createSlice 2021-07-14 10:53:03 +10:00
Audric Ackermann 63b81b4c8e
cleanup SessionMessageList p1 2021-07-13 17:00:20 +10:00
Brice-W 2af9d9e15d use of a custom hook to detect focus 2021-07-12 14:35:43 +10:00
Audric Ackermann f0fad6edfa
uniformized props for Message 2021-07-08 16:43:32 +10:00
Audric Ackermann ee4a0b9b1e
cleanedup redux action openConversationExternal 2021-07-08 16:12:58 +10:00
Audric Ackermann 7f76ab274c
added a hook to fetch avatar of closed group members 2021-07-08 16:11:43 +10:00
Brice-W 936f9a3efc don't mark message as read if app isn't focused 2021-07-08 15:03:27 +10:00
Audric Ackermann 016461f506
mark message as read on click on scroll to bottom button 2021-07-08 13:30:09 +10:00
Audric Ackermann e451cdd78f
rename message props to messageProps 2021-07-06 14:22:22 +10:00
Audric Ackermann c8aa73626e
do not load right panel data unless it is visibl 2021-07-06 14:02:47 +10:00
Audric Ackermann f0db797a9a
fix loading of messages props 2021-07-05 17:09:17 +10:00
Audric Ackermann 672eb91975
add types for message props and remove props function calls msg 2021-07-05 15:54:35 +10:00
Warrick Corfe-Tan 5b5cea6831 minor formatting and linting changes. 2021-06-25 15:16:37 +10:00
Warrick Corfe-Tan c04d3cd7d1 minor move function to larger scope 2021-06-25 14:47:42 +10:00
Warrick Corfe-Tan 184c4d5d3e Audio autoplay stop when sent from a different user. 2021-06-25 10:18:53 +10:00
Warrick Corfe-Tan fc31f8d2b1 Merge branch 'clearnet' into audio-messages-play-all 2021-06-25 09:10:44 +10:00
Warrick Corfe-Tan 5a62fabd1c Doesn't autoplay new messages once if last message received was an autoplayed. 2021-06-24 16:53:34 +10:00
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 2021-06-24 15:10:38 +10:00
Warrick Corfe-Tan 3bd72df258 linting and formatting. 2021-06-24 14:13:45 +10:00
Warrick Corfe-Tan 856ced056a Minor tidying. 2021-06-24 14:00:07 +10:00
Warrick Corfe-Tan d35f3f9e62 WIP: audio autoplay working with consecutive messages. Next step store state on shutdown and rename variables. 2021-06-24 13:43:52 +10:00
Audric Ackermann b055165a5d
display a message when the recipient screenshots an attachemnt 2021-06-01 15:46:29 +10:00
Audric Ackermann 810ccdf675
send dataExtractionNotificaionMessage on saving attachment on priv chats 2021-06-01 10:08:16 +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 f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann 099c9a6f8c
autobind class with a lot of ...bind(this) 2021-03-16 13:34:05 +11:00