forked from signalapp/Signal-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quotes + Reply to message update #2757
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bilb
reviewed
May 17, 2023
ts/components/conversation/message/message-content/quote/QuoteText.tsx
Outdated
Show resolved
Hide resolved
ts/components/conversation/message/message-content/quote/QuoteAuthor.tsx
Outdated
Show resolved
Hide resolved
ts/components/conversation/message/message-content/quote/QuoteAuthor.tsx
Outdated
Show resolved
Hide resolved
ts/components/conversation/message/message-content/MessageQuote.tsx
Outdated
Show resolved
Hide resolved
ts/components/conversation/message/message-content/MessageQuote.tsx
Outdated
Show resolved
Hide resolved
ts/components/conversation/message/message-content/quote/Quote.tsx
Outdated
Show resolved
Hide resolved
Bilb
approved these changes
May 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
finished text reply
added localisation for attachment description
updated StyledStagedPlaceholderAttachment to be a styled functional component
…imestamp which does the same thing but is more verbose
resolved regression with quote author name
… object this should help performance when loading quotes in the UI since individual db lookups will no longer be required
forEach and async still don't play nice so used a regular for loop, added QuoteLookupType
…ate and loads correctly into the Quote
removed reference warning component since it is no longer needed
show message not found in correct context
remove border on quote if there is an attachment
converted quote primary text to styled components
added support for generic file icon with consistent design. Still need to support know file types and metdata from the generic file component
make sure to load message text is it exists for all quotes
… attachments and no text
…useQuoteAuthorName this gives proper blinded key support
…essageQuoteProps this is more performance and relies on the latest redux state
… map this consolidates the key lookup logic to one place for future proofing
…e it is the most likely to happen
…to be more explicit
yougotwill
force-pushed
the
quote_ui_update
branch
from
June 1, 2023 04:16
cfa82cb
to
bc55a2d
Compare
…eectly we now look up the existing messages in memory if not found in the quote lookup map, we also allow jumping to messages quoted but not yet stored in memory
Bilb
reviewed
Jun 7, 2023
ts/components/conversation/message/message-content/MessageQuote.tsx
Outdated
Show resolved
Hide resolved
fixed edge case of local db search for quotes lookup
Bilb
approved these changes
Jun 7, 2023
there is never an avatar so we should never render it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates both the logic and UI for replying to messages and rendering quotes in a conversation.
This PR replaces #2399
Closes #2343
Fixes: #2625
linkify-it
dependency to4.0.1
getMessageBySenderAndTimestamp()
and replaced any calls withgetMessageBySenderAndSentAt()
quote
object when sending a quote and not a limited version of it. This means we removedQUOTED_TEXT_MAX_LENGTH
andsliceQuoteText()
.<Quote />
elements into separate components.vscode
to eslint and prettier ignore files.window.i18n('unknown')
.