Commit graph

10707 commits

Author SHA1 Message Date
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 945ecf34a1
Fix select colors for sent messages and link text not selectable (#1924)
* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent

* Allow scrolling in mentioning people in composition box

Relates #1849

* fix selection colors for sent messages and make link selectable

Relates #1922
2021-09-17 11:36:46 +10:00
Audric Ackermann 2fdafb8fba
Out of sync message sync (#1923)
* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent

* Allow scrolling in mentioning people in composition box

Relates #1849
2021-09-17 11:36:36 +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 2e0cf0bca9
Fix video play lightbox autostart (#1920)
* 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

* Fix video autoplay start when not initialized

Relates #1904
2021-09-16 14:49:19 +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 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 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 Ackermann b4068a2cc6
Merge pull request #1902 from Bilb/fix-new-line-break
Keep line breaks when message has some new lines
2021-09-13 16:33:23 +10:00
Audric Ackermann 48090b4b25
Keep line breaks when message has some new lines
Relates #1758 and #1898 and #1901
2021-09-08 13:45:56 +10:00
Audric Ackermann 47977c72bd
Merge pull request #1896 from Bilb/fix-onion-path-not-enough-snodes
fix build of onion path when snodes count is exactly 12
2021-09-06 14:40:49 +10:00
audric ffe8375dd1 fix build of onion path when snodes count is exactly 12 2021-09-06 14:35:10 +10:00
Audric Ackermann 291738ea2d
Merge pull request #1893 from Bilb/ui-fixes
fix search logic and UI cosmetic fixes
2021-09-06 11:08:59 +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 Ackermann ce4a386f07
Merge pull request #1888 from Bilb/ui-mobile
make UI a bit more like the one on mobile part2
2021-09-03 13:32:56 +10:00
audric bf02b85043 finish rework registration page 2021-09-02 17:20:44 +10:00
audric 3221dd8921 pull latest translations from crowdin 2021-09-02 17:20:25 +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 8462d7d38e make encrypted content fast load if already stored decrypted 2021-09-02 10:33:42 +10:00
audric 0d90248450 fix scrolling jumping to bottom on new messages 2021-09-02 10:31:08 +10:00
audric ca272983dc bump to v1.7.0 2021-09-01 15:25:57 +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 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 Ackermann 1347848e91
Merge pull request #1884 from Bilb/ui-mobile
make conversation screen closer to mobile
2021-08-30 12:20:42 +10:00
audric 95b2e866fc disable menu when the menu is hidden
this also disable the ALT shortcut to show it. Relates #1769
2021-08-30 09:33: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 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 ea2dbb4a69 onionpath status only has ip needed 2021-08-25 16:51:40 +10:00
audric 38665e105a remove search messages frpm search result 2021-08-25 16:19:26 +10:00
audric ec2eab6e23 do not trigger redux update if onion path did not change 2021-08-25 16:18:53 +10:00
audric 4968244491 fix tooltip error in debug run related to memory leak 2021-08-25 15:29:13 +10:00