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 {
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue