Add support for decrypting messages

This commit is contained in:
Tulir Asokan
2020-04-27 00:38:04 +03:00
parent 96bb87e8ac
commit 0e8e81a607
6 changed files with 96 additions and 23 deletions

View File

@ -412,7 +412,7 @@ func (room *Room) UpdateState(evt *event.Event) {
case *event.TopicEventContent:
room.topicCache = content.Topic
case *event.EncryptionEventContent:
if content.Algorithm == event.AlgorithmMegolmV1 {
if content.Algorithm == id.AlgorithmMegolmV1 {
room.Encrypted = true
}
}