Merge pull request #7443 from hayaksi1/fix/4519-hide-verification-fallback

Do not render in-chat key verification requests in the timeline
This commit is contained in:
Benoit Marty
2026-08-21 16:52:58 +02:00
committed by GitHub
3 changed files with 67 additions and 2 deletions
@@ -128,4 +128,11 @@ sealed interface GalleryItemType {
data class OtherMessageType(
val msgType: String,
val body: String,
) : MessageType
) : MessageType {
/**
* A `m.key.verification.request` carries a body meant for clients that cannot handle in-chat
* verification, so it must not be rendered as a message.
*/
val isKeyVerificationRequest: Boolean
get() = msgType == "m.key.verification.request"
}