mirror of
https://github.com/element-hq/element-web
synced 2024-10-27 21:18:13 +03:00
Bubble up a decline-to-render of verification events to outside wrapper
This stops the event from appearing as a blank line.
This commit is contained in:
parent
ab116e1e63
commit
472c421150
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ export function getHandlerTile(ev) {
|
||||||
// fall back to showing hidden events, if we're viewing hidden events
|
// fall back to showing hidden events, if we're viewing hidden events
|
||||||
// XXX: This is extremely a hack. Possibly these components should have an interface for
|
// XXX: This is extremely a hack. Possibly these components should have an interface for
|
||||||
// declining to render?
|
// declining to render?
|
||||||
if (type === "m.key.verification.cancel" && SettingsStore.getValue("showHiddenEventsInTimeline")) {
|
if (type === "m.key.verification.cancel" || type === "m.key.verification.done") {
|
||||||
const MKeyVerificationConclusion = sdk.getComponent("messages.MKeyVerificationConclusion");
|
const MKeyVerificationConclusion = sdk.getComponent("messages.MKeyVerificationConclusion");
|
||||||
if (!MKeyVerificationConclusion.prototype._shouldRender.call(null, ev, ev.request)) {
|
if (!MKeyVerificationConclusion.prototype._shouldRender.call(null, ev, ev.request)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue