Skip to content

Commit

Permalink
Prefer author ID to phone number for message menu trigger ID
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Mar 24, 2021
1 parent 7a9a4a1 commit 6f40464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/components/conversation/Message.tsx
Expand Up @@ -2230,7 +2230,7 @@ export class Message extends React.PureComponent<Props, State> {

public render(): JSX.Element | null {
const {
authorPhoneNumber,
authorId,
attachments,
direction,
id,
Expand All @@ -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.
// It needs to be unique.
const triggerId = String(id || `${authorPhoneNumber}-${timestamp}`);
const triggerId = String(id || `${authorId}-${timestamp}`);

if (expired) {
return null;
Expand Down

0 comments on commit 6f40464

Please sign in to comment.