You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
added comment
This commit is contained in:
@@ -102,6 +102,8 @@ export function getHandlerTile(ev) {
|
|||||||
|
|
||||||
// sometimes MKeyVerificationConclusion declines to render. Jankily decline to render and
|
// sometimes MKeyVerificationConclusion declines to render. Jankily decline to render and
|
||||||
// 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
|
||||||
|
// declining to render?
|
||||||
if (type === "m.key.verification.cancel" && SettingsStore.getValue("showHiddenEventsInTimeline")) {
|
if (type === "m.key.verification.cancel" && SettingsStore.getValue("showHiddenEventsInTimeline")) {
|
||||||
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user