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;
|
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')) {
|
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (mxEvent.getType() === 'm.sticker') {
|
} else if (
|
||||||
|
mxEvent.getType() === 'm.sticker' ||
|
||||||
|
POLL_START_EVENT_TYPE.matches(mxEvent.getType())
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue