Commit graph

1288 commits

Author SHA1 Message Date
Audric Ackermann 678a5bcb3b
center avatar in draggable video window and handle mute video events 2021-10-18 14:45:40 +11:00
Audric Ackermann ecceaeaa8f
got datachannel working 2021-10-18 11:52:21 +11:00
Audric Ackermann 13d828c02c
split up calling container logic 2021-10-14 15:16:52 +11:00
Audric Ackermann 30a234158f
lint 2021-10-14 14:38:07 +11:00
Audric Ackermann 87e7cc5ebf
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls 2021-10-14 14:22:37 +11:00
Audric Ackermann cade0ffeb6
make sure audio locally is muted so we do not hear ourselves 2021-10-14 14:17:47 +11:00
Audric Ackermann 3a864b16ca
cosmetic changes for calling buttons 2021-10-14 14:12:15 +11:00
Audric Ackermann ce79ce1f8b
add buttons with popover to choose call src device 2021-10-14 14:12:15 +11:00
Audric Ackermann fbd51c2974
add buttons to display list of inputs + toast on empty 2021-10-14 14:12:08 +11:00
Audric Ackermann b85425ff83
make a draggable or in conversation call container 2021-10-05 16:44:42 +11:00
Audric Ackermann 32955c9ed5
allow sessioncomposition box to grow bigger 2021-10-04 10:57:37 +11:00
Audric Ackermann 1e8c8991ad
more cleanup 2021-10-04 10:56:54 +11: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 fa32e61982
network delete_all force retries if we get a 421 2021-09-29 17:04:38 +10:00
Audric Ackermann c54f63ab45
add listener for video calls events 2021-09-27 13:57:31 +10:00
Audric Ackermann 94bc3da2c7
working video calls accept with real streaming with android 2021-09-23 14:50:24 +10:00
Audric Ackermann 8b611a2867
make call UI react to incoming and ongoing calls 2021-09-23 13:37:38 +10:00
Warrick Corfe-Tan a1601b039e Adding call to convo header menu 2021-09-22 17:04:15 +10:00
Audric Ackermann 6c50ec4bf1
link accept/decline and endcall buttons to the webrtc background 2021-09-22 16:31:00 +10:00
Warrick Corfe-Tan 5d4d63c76d Adding partial UI for calls. 2021-09-22 15:44:15 +10:00
Audric Ackermann 0afb3db604
Merge pull request #1933 from warrickct/add-survey
Adding survey button to settings menu.
2021-09-21 09:38:32 +10:00
Audric Ackermann 4e30614077
disable unsend request on the UI for now (#1934)
* disable unsend request on the UI too

* do not stop propagation of events for message ctx menu
2021-09-20 17:00:54 +10:00
Warrick Corfe-Tan daae55d62c Adding survey button to settings menu. 2021-09-20 15:44:19 +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 ab75f945ff
Ask confirm before delete account (#1910)
* disable sending on enter while composing

Fixes #1899 #1497

* ask confirmation before deleting account

* fix app start delete db when passowrd error

* fix double dialog issue with delete account

* fixup login screen
2021-09-16 14:42:13 +10:00
Audric Ackermann 25453ee807
Speedup body update composition box (#1911)
* disable sending on enter while composing

Fixes #1899 #1497

* ask confirmation before deleting account

* move drafts outside of redux to speedup body message writing
2021-09-16 14:34:02 +10:00
Audric Ackermann a1f5706fea
disable sending on enter while composing (#1909)
Fixes #1899 #1497
2021-09-14 13:17:36 +10:00
Audric Ackermann c92baad736
Fix path building (#1903)
* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* fix link preview cropped when received

* make sure we fetch from seed if we end up with not enough snodes

* try to download recent previews if we just trusted a user

* throw if we need to rebuild path while fetching snode list from snode

* fixup no refecthing of snode list while we are fetching them already

* added test for fetch from db or seed

* fetch snode list from snode every hour

also make sure the path building does not try to get more snodes. It
just throws

* do not drop a path if an opengroup room is down and we get errors  back

* do not throw an error if the snode in error in not in any path

* fix tests

* bump to v1.7.11
2021-09-13 17:07:53 +10:00
audric bf02b85043 finish rework registration page 2021-09-02 17:20:44 +10:00
audric ba35a8cb24 update design of registration page 2021-09-02 16:38:37 +10:00
audric 56412df2b4 fixup registration page with back buttons for now
Relates #1889
2021-09-02 15:08:39 +10:00
audric 0d90248450 fix scrolling jumping to bottom on new messages 2021-09-02 10:31:08 +10:00
audric bd7d88e170 remove theme from css and used variables instead 2021-09-01 14:29:04 +10:00
audric 350f00283b move tsx and theme to css variables part1 2021-08-31 13:58:34 +10:00
audric 62764d25f6 showDate break on > 5 minutes diff between messages 2021-08-31 11:29:33 +10:00
audric a30876fd65 removed the enum from SessionIconType. Just rely on the type itself 2021-08-30 17:57:31 +10:00
audric a53392853f make the CompositionBox closer to the mobile UI 2021-08-30 15:11:26 +10:00
audric e85f351540 cleanup theme object 2021-08-30 14:26:58 +10:00
audric 8ebcb2d1e1 replace SessionIcon size enum with type 2021-08-30 14:02:15 +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 985a5d92bc do not show search input if we only got a single conversation 2021-08-26 16:44:58 +10:00
audric 714024fb1f fix notification icons 2021-08-26 16:25:14 +10:00
audric 7fa50b4a73 do not pass props not needed between message list components 2021-08-26 16:17:37 +10:00
audric 4968244491 fix tooltip error in debug run related to memory leak 2021-08-25 15:29:13 +10:00
audric f9988119f9 major UI rewrite of messages view with redux improvements 2021-08-25 15:01:19 +10:00
audric ee4ed2e075 fix attachment logic with ui redesign 2021-08-24 13:23:23 +10:00
audric f7b0c6c7e1 make conversation screen closer to mobile UI part1 2021-08-23 16:32:21 +10:00