* close incoming call dialog if endCall from seame sender
* disable message request toggle if featureFlag is OFF
* cleanup UI of message requests
* mark all existing conversations as approved in a migration
* fix regex with conversationID for opengroups
* Open group URL regex fixes
- Capital letters in room tokens were not being accepted (it eventually
gets lower-cased internally, which works fine, but that happens
*after* the URL is tested for acceptability).
- `-` in room was not being allowed (it is and always has been on SOGS,
session-android, and session-ios).
- single-letter room ids are valid, but only 2+ letter ids were being
accepted.
- complete URL regex wasn't anchored so something like
`garbagehttps://example.com/room?public_key=<64hex>moregarbage` was
being accepted in the GUI input (it fails later when other code tries
to parse it as a URL).
- removed `m` modifier from open group regex: without anchors it wasn't
doing anything anyway, but *with* anchors it would still allow
leading/trailing garbage if delineated by newlines.
- public key regex was accepting g-z letters, and not accepting A-F.
- various regex cleanups:
- use non-capture groups (?:...) rather than capturing groups (...)
- avoid repetition in host segment matching
- tightened up host pattern matching a bit:
- DNS host segments have a max length of 63
- Limit port max length to 5, and disallow starting with 0
* Show an error when the open group URL is invalid
It's quite disconcerting when you have a bad open group URL and try to
add it and the join button just "doesn't work" without any feedback at
all. Fix it to show an error message. (There is already an i18n entry
for this because this same message is thrown if the URL can't be parsed
later on).
* 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>
* 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