Commit graph

832 commits

Author SHA1 Message Date
Audric Ackermann 651b1c4376
Fetch translations (#2056)
* 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

* add type for i18n to run update after crowdin  fetch with tools/updateI18nKeysType.py

* update to latest translations
2021-11-30 14:46:06 +11:00
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 894349e710
cleanup props passing of avatar and name with a custom hook 2021-11-23 16:18:27 +11:00
Audric Ackermann 5ba7f20162
speed up fetching closed group's members avatar 2021-11-23 15:18:46 +11:00
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +11:00
Audric Ackermann 4ce1b7813a
add data-testid for leftpane sections and edit profile dialog 2021-11-18 11:36:14 +11:00
Audric Ackermann 25c7a2febd
data extraction notification on a line rather than a column 2021-11-09 15:45:18 +11:00
Audric Ackermann cca1b4dabe
add a button to start a video call 2021-11-08 15:33:49 +11:00
Audric Ackermann f91ed7729b
cleanup SessionCompositionBox 2021-11-08 11:03:08 +11:00
Audric Ackermann 16ab506eb6
double click on message replies to
Relaes #2006
2021-11-04 16:32:06 +11:00
Audric Ackermann dfa04c68f4
fix emoji click on button while open closes it
Fixes #1980
2021-10-28 17:14:30 +11:00
Audric Ackermann 5b57e01186
make sure click to trust sender renders without new lines 2021-10-27 15:02:42 +11:00
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann f74ce2a3ae
msg with attachments gets no bigger than the attachment container 2021-10-21 17:07:57 +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 55313deb91
add a show user details option in the menu
Fixes #1971
2021-10-20 15:54:26 +11:00
Audric Ackermann ae8688bf2a
cleanup UI for missed call messages in msg list 2021-10-19 16:11:19 +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 8f3b6d9ab2
add wip of call missed notification 2021-10-18 15:38:49 +11:00
Audric Ackermann 87e7cc5ebf
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls 2021-10-14 14:22:37 +11:00
Warrick Corfe-Tan 04e0023d38 fix import warning 2021-10-11 12:35:14 +11:00
Warrick Corfe-Tan 1fe6b61308 Re-adding code that wasn't commited. Adding button for debug log in settings. 2021-10-11 12:25:27 +11:00
Warrick Corfe-Tan 5eba4a616e Removing at regex test preventing some urls from rendering as links. 2021-10-04 11:02:58 +11:00
Audric Ackermann 3f1e55b787
add basic code markup 2021-10-04 10:57:15 +11: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
Audric Ackermann 15ac6ed23c
Merge remote-tracking branch 'upstream/master' into clearnet 2021-09-20 14:00:52 +10:00
Audric Ackermann e3c27f1016
fix reply for incoming messages (#1930) 2021-09-20 13:48:20 +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 e9dfa0704f
do not overwrite sent_at with network time for synced messages (#1921)
* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent
2021-09-17 10:38:27 +10:00
Audric Ackermann 525f9dcfb2
Fix today for translated date break (#1915)
* 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

* Fixs date break translations of today etc

Relates #1913
2021-09-16 14:49:11 +10:00
Audric Ackermann 797bf0650f
Session 1.7.1 (#1908)
* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* 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 18:05:49 +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 7c49c51cf8 make outgoing status align flex-end 2021-09-06 10:45:29 +10:00
audric bfc805c9d4 fix search logic and UI cosmetic fixes 2021-09-03 16:47:04 +10:00
audric 08cdd035ae disable transition for background of leftpane (for app initial load) 2021-09-01 15:25:34 +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 8ebcb2d1e1 replace SessionIcon size enum with type 2021-08-30 14:02:15 +10:00
audric 1048042f7d fix attachment pre-decrypting when out of view 2021-08-27 17:23:46 +10:00
audric cdd11eee47 speed up attachment loading by only loading those inview 2021-08-27 16:57:29 +10:00
audric a986931569 make attacments the same size that they are displayed on the UI 2021-08-27 15:18:44 +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 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