aboutsummaryrefslogtreecommitdiff
path: root/matrix/rooms
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-27 00:38:04 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-27 00:38:04 +0300
commit0e8e81a6078a98803f1012882f8c176fd3b5204e (patch)
treef33433ef6629fcca4b92c8d9b50dab4c30ec4a63 /matrix/rooms
parent96bb87e8ac8f45d56d487ea6c16d67f057d97e1f (diff)
Add support for decrypting messages
Diffstat (limited to 'matrix/rooms')
-rw-r--r--matrix/rooms/room.go2
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
}
}