Support reactions, replies and forwards of polls (#7318)

This commit is contained in:
Andy Balaam 2021-12-09 12:54:31 +00:00 committed by GitHub
parent 3c1ee204a0
commit 68ac578577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -139,3 +139,8 @@ limitations under the License.
font-size: $font-12px;
}
}
// Prevent clicking a poll within a reply
.mx_ReplyTile .mx_MPollBody {
pointer-events: none;
}

View file

@ -46,7 +46,10 @@ export function isContentActionable(mxEvent: MatrixEvent): boolean {
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
return true;
}
} else if (mxEvent.getType() === 'm.sticker') {
} else if (
mxEvent.getType() === 'm.sticker' ||
POLL_START_EVENT_TYPE.matches(mxEvent.getType())
) {
return true;
}
}