Commit graph

427 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
warrickct e32f20d8bc PR changes 2021-11-26 13:20:03 +11:00
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +11:00
warrickct f91e2c4edd Minor PR fixes 2021-11-24 13:55:16 +11:00
warrickct 97fe0c7a7a Merge branch 'clearnet' into message-requests 2021-11-24 13:37:18 +11:00
warrickct b5df47c2b8 Addressing PR comments 2021-11-24 13:36:51 +11:00
warrickct 726418887c Addressing PR comments 2021-11-24 09:32:07 +11:00
warrickct 2d664a2df7 Applying PR changes. 2021-11-23 16:03:24 +11:00
warrickct 3602b51986 Fixing up block all logic. 2021-11-23 11:00:11 +11:00
Audric Ackermann af75b6f0e2
disable deduplication based serverId+sender
only use the serverTimestamp+sender for searching because
serverId+sender might have false positive
2021-11-23 10:32:11 +11:00
warrickct ac8dbb341b linting and formatting changes 2021-11-22 17:36:23 +11:00
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 2021-11-22 17:24:53 +11:00
warrickct 2144a3980f Linting and formatting. 2021-11-22 16:48:30 +11:00
warrickct 23ca19b125 Only updating approval when it is a true value as we consider a block a decline. 2021-11-22 16:18:19 +11:00
warrickct 9c9a43ee97 Adding improvements to message request handling. 2021-11-22 15:48:12 +11:00
Audric Ackermann 1dff310820
no video track by default and will be turn ON if asked to 2021-11-19 13:27:16 +11:00
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +11:00
Audric Ackermann c1471426ac
dismiss a call when answered from another of our devices 2021-11-17 16:01:33 +11:00
Audric Ackermann 22e4c9d850
fix archlinux pw unused issue
on archlinux, the appimage links to the system sqlite by default which
does not support sqlcipher
2021-11-17 10:21:19 +11:00
warrickct 40396224dc adding feature flag for config message receiving 2021-11-16 14:40:52 +11:00
warrickct 2eab74246b PR changes. Disabling message requests behind feature flags. 2021-11-16 13:46:59 +11:00
warrickct e5a203a48e adding setting of active_at to hide unapproved messages. 2021-11-16 13:09:44 +11:00
Audric Ackermann 67665dde56
handle network switching with webrtc
dirty hack from
https://bugs.chromium.org/p/chromium/issues/detail?id=982793
2021-11-15 16:53:00 +11:00
Warrick Corfe-Tan cb5551c1e9 PR changes 2021-11-14 22:38:07 +11:00
Warrick Corfe-Tan 6a62437c3e Blocking, accepting on click and accepting on msg send
working across clients.
2021-11-12 13:29:35 +11:00
Audric Ackermann ef25e5956f
add a spinner for when video call video is loading 2021-11-08 14:09:50 +11:00
Warrick Corfe-Tan 87235641cb fixed typos for translations and method name. 2021-11-04 16:07:27 +11:00
Warrick Corfe-Tan c3924f85a9 Adding blocking of individual requests and syncing of block to devices. Added approval by replying to a message. 2021-11-04 14:47:47 +11:00
Audric Ackermann 8468598b3a
send a pre offer to the PNServer for video calls 2021-11-04 11:49:34 +11:00
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 2021-10-29 10:58:40 +11:00
Audric Ackermann ce16066313
do not try to do an unsend request on a group swarm 2021-10-27 11:44:37 +11:00
Audric Ackermann bb26680b75
unsend for me only on a closed group only deletes locally
also do not await request to PN server
2021-10-26 16:59:46 +11:00
Audric Ackermann 5d9565a559
fix menu action for unsending messages 2021-10-26 16:08:04 +11:00
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann 251309656b
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls-p2 2021-10-21 13:52:20 +11:00
Audric Ackermann 5c7615d205
removed old fileserver support 2021-10-20 14:18:57 +11:00
Audric Ackermann 8e6d9ca036
Merge pull request #1969 from Bilb/webrtc-calls
Webrtc video calls - first part - disabled
2021-10-18 16:00:56 +11:00
Audric Ackermann a629985a4f
fix toggling input source and off in video calls 2021-10-14 14:12:14 +11:00
Warrick Corfe-Tan 8d75fde012 yarn ready changes 2021-10-08 13:57:25 +11:00
Warrick Corfe-Tan ff1d7cefe4 changing some code. 2021-10-08 13:33:53 +11:00
Warrick Corfe-Tan 3c7c3220a1 Marking conversation as read if received a sync message from same users other device. 2021-10-08 10:59:00 +11:00
Audric Ackermann 4277c29bd8
make sure to refetch messageModel from db when saving attachments 2021-10-04 16:13:21 +11:00
Warrick Corfe-Tan 1522e5102d removed isCall property from message. Fixed text 2021-10-01 15:13:02 +10:00
Warrick Corfe-Tan 0b8f3255b0 corrections to pass yarn ready 2021-10-01 14:06:04 +10:00
Warrick Corfe-Tan 6743201cc4 added perfect negotiation
Adding toast for cam and audio permission when making a call.

adding missed call message and toast when a call is received while mid-call.

background call message work
2021-10-01 13:39:47 +10:00
Audric Ackermann 8b611a2867
make call UI react to incoming and ongoing calls 2021-09-23 13:37:38 +10:00
Audric Ackermann d55c96cb67
setup webrtc between two pubkey 2021-09-22 11:55:30 +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