Prefer author ID to phone number for message menu trigger ID

This commit is contained in:
Evan Hahn 2021-03-24 18:42:08 -05:00 committed by GitHub
parent 7a9a4a1404
commit 6f404648d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2230,7 +2230,7 @@ export class Message extends React.PureComponent<Props, State> {
public render(): JSX.Element | null { public render(): JSX.Element | null {
const { const {
authorPhoneNumber, authorId,
attachments, attachments,
direction, direction,
id, id,
@ -2241,7 +2241,7 @@ export class Message extends React.PureComponent<Props, State> {
// This id is what connects our triple-dot click with our associated pop-up menu. // This id is what connects our triple-dot click with our associated pop-up menu.
// It needs to be unique. // It needs to be unique.
const triggerId = String(id || `${authorPhoneNumber}-${timestamp}`); const triggerId = String(id || `${authorId}-${timestamp}`);
if (expired) { if (expired) {
return null; return null;