Commit Graph

107 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
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann 8f3b6d9ab2
add wip of call missed notification 2021-10-18 15:38:49 +11:00
Audric Ackermann efebd8ba24
bump to 1.7.2 (#1926)
* do not consider expire timer update unread messages #1881

* cleanup conversation props in redux to only have what cannot be derived

* fix app not starting without the await on convo creation

* cleanup props of message model

* bump to 1.7.2
2021-09-20 13:52:59 +10:00
Warrick 1d459ba533
Unsend messages (only message hashes saving for now is enabled) (#1891)
* WIP unsending message.

* retrieving message with hash from db on receiving unsend request.

* outgoing messages hashes updated on message sent success

* unsend messaging

* unsend message - deleting messages and marking as isDeleted.

* add msg hash to unprocessed records.

* Message unsending working for closed groups provided the message has been updated with a hash from server.

* adding 2-stage confirmation modal for message deletion

* adding rendering of removed incoming messages, disabling rendering of unsent outgoing messages in coversation screen.

* Adding logging

* debugging.

* outgoing only saved for sync message instead of regular message.

* deleting locally

* adding post unsend deletioncode.

* starting adding feature flag.

* Added feature flag.

* addding mandatory messageHash  pollling pipeline methods swarm polling.

* Conversation list item message preview showing deletion placeholder text if deleted.

* add condition to drop unsend requests not send by message author

* refactoring deleteMessage. Saving response hash for closed group message sending

* running yarn ready

* removing logging.

* Adding PR fixes

* Minor changes and running yarn ready

* fix typo

* Moved feature flag to lokiFeatureFlags. Fixing linting errors


Co-authored-by: Audric Ackermann <audric@loki.network>
2021-09-20 13:47:59 +10:00
Audric Ackermann b17312c13c
Cleanup redux store (#1925)
* do not consider expire timer update unread messages #1881

* cleanup conversation props in redux to only have what cannot be derived

* fix app not starting without the await on convo creation

* cleanup props of message model
2021-09-17 16:41:04 +10:00
Audric Ackermann b45109985c
use timestamp offset in for messages storage requests (#1892)
* add using timestamp offset from network for sending part1

* remove MessageController as we now rely on the database

* fix tests for message sending overriding timestamp
2021-09-16 14:48:46 +10:00
audric bd7d88e170 remove theme from css and used variables instead 2021-09-01 14:29:04 +10:00
audric 62764d25f6 showDate break on > 5 minutes diff between messages 2021-08-31 11:29:33 +10:00
audric 7fa50b4a73 do not pass props not needed between message list components 2021-08-26 16:17:37 +10:00
audric 38665e105a remove search messages frpm search result 2021-08-25 16:19:26 +10:00
audric f9988119f9 major UI rewrite of messages view with redux improvements 2021-08-25 15:01:19 +10:00
audric 7b93d5df9a fix caption for attachments not displayed once sent 2021-08-20 10:20:23 +10:00
Brice-W a89c6710fb Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into link-previews 2021-08-16 15:10:17 +10:00
Brice-W 384eecd9dc allow receiving link previews when sending is disabled 2021-08-12 15:58:41 +10:00
audric 9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00
Audric Ackermann f7658c323d
Merge pull request #1821 from Brice-W/bug-fixes
Bug fixes
2021-08-02 21:50:38 -07:00
Brice-W f7c7d6a3d8 change source of MessageAttributesOptionals to not null 2021-08-03 14:31:06 +10:00
Audric Ackermann 360cb52680
make all messages types a readable message 2021-07-30 16:26:58 +10:00
Audric Ackermann 3f065a7b0e
improve marking message as read with hooks 2021-07-30 16:12:36 +10:00
Audric Ackermann 12d09bc896
preload messages when switching conversation 2021-07-29 15:29:32 +10:00
Audric Ackermann f9ecfccc0a
batch UI updates of message added events 2021-07-29 13:44:38 +10:00
Brice-W 54a2eef700 change the way skipTimerInit is defined in MessageModel 2021-07-26 15:11:20 +10:00
Brice-W bec9bd553e Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into filter-expired-messages 2021-07-26 12:19:20 +10:00
Brice-W d7eafb7e15 rollback changes 2021-07-26 10:49:35 +10:00
Brice-W 72868c10e5 clean 2021-07-26 10:47:10 +10:00
Brice-W beca14982c manage expired nessage deletion in setExpired 2021-07-26 10:43:12 +10:00
audric bfc4b2b720 lint 2021-07-22 16:34:17 +10:00
audric 588ae85cda fix at lat types for attachment 2021-07-22 16:13:22 +10:00
Brice-W 6bbabce8e3 fix async issue 2021-07-22 15:21:52 +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
Brice-W e5615357f7 call setToExpire when expire timer is started to set expire_at property of message 2021-07-22 14:58:00 +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
Brice-W c38d2a5ea7 revert prev changes + marking read now based on received_at 2021-07-15 16:48:54 +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 63b81b4c8e
cleanup SessionMessageList p1 2021-07-13 17:00:20 +10:00
Brice-W 151fc758c0 format 2021-07-12 16:44:31 +10:00
Audric Ackermann f0fad6edfa
uniformized props for Message 2021-07-08 16:43:32 +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
Audric Ackermann 6deb97dbc0
WIP 2021-07-05 11:23:47 +10:00