mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Support reactions, replies and forwards of polls (#7318)
This commit is contained in:
parent
3c1ee204a0
commit
68ac578577
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue