diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-27 00:38:04 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-27 00:38:04 +0300 |
commit | 0e8e81a6078a98803f1012882f8c176fd3b5204e (patch) | |
tree | f33433ef6629fcca4b92c8d9b50dab4c30ec4a63 /matrix/rooms | |
parent | 96bb87e8ac8f45d56d487ea6c16d67f057d97e1f (diff) |
Add support for decrypting messages
Diffstat (limited to 'matrix/rooms')
-rw-r--r-- | matrix/rooms/room.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/rooms/room.go b/matrix/rooms/room.go index 0238cfb..45222e1 100644 --- a/matrix/rooms/room.go +++ b/matrix/rooms/room.go @@ -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 } } |