Quotes: Use authorId when navigating to original message

This commit is contained in:
Scott Nonnenberg 2020-12-11 10:06:04 -08:00 committed by GitHub
parent 3715309f9c
commit 0506b79f6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions

View file

@ -185,7 +185,10 @@ export type PropsActions = {
displayTapToViewMessage: (messageId: string) => unknown;
openLink: (url: string) => void;
scrollToQuotedMessage: (options: { author: string; sentAt: number }) => void;
scrollToQuotedMessage: (options: {
authorId: string;
sentAt: number;
}) => void;
selectMessage?: (messageId: string, conversationId: string) => unknown;
showExpiredIncomingTapToViewToast: () => unknown;
@ -971,7 +974,7 @@ export class Message extends React.PureComponent<Props, State> {
? undefined
: () => {
scrollToQuotedMessage({
author: quote.authorId,
authorId: quote.authorId,
sentAt: quote.sentAt,
});
};