Add more logging for view-once message interactions
This commit is contained in:
parent
3b5820b96a
commit
9fd191ae00
2 changed files with 17 additions and 1 deletions
|
@ -2084,13 +2084,16 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
|
||||
const isAttachmentPending = this.isAttachmentPending();
|
||||
|
||||
// Don't show lightbox for GIFs
|
||||
if (isGIF(attachments)) {
|
||||
window.log.info("<Message> handleOpen: lightbox doesn't open for GIFs");
|
||||
return;
|
||||
}
|
||||
|
||||
if (isTapToView) {
|
||||
if (isAttachmentPending) {
|
||||
window.log.info(
|
||||
'<Message> handleOpen: tap-to-view attachment is pending; not showing the lightbox'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue