Prefer author ID to phone number for message menu trigger ID
This commit is contained in:
parent
7a9a4a1404
commit
6f404648d7
1 changed files with 2 additions and 2 deletions
|
@ -2230,7 +2230,7 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
|
||||
public render(): JSX.Element | null {
|
||||
const {
|
||||
authorPhoneNumber,
|
||||
authorId,
|
||||
attachments,
|
||||
direction,
|
||||
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.
|
||||
// It needs to be unique.
|
||||
const triggerId = String(id || `${authorPhoneNumber}-${timestamp}`);
|
||||
const triggerId = String(id || `${authorId}-${timestamp}`);
|
||||
|
||||
if (expired) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue