diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-06-16 21:24:51 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-06-16 21:24:51 +0300 |
commit | c6ca343cd1b198c6a15f8d3045bc7e83b1a36cf3 (patch) | |
tree | 763664bd39146a97a9b301535a38d434e661843e /matrix/history.go | |
parent | d1d129f6cffb909516a29f9bdb0da6f13e65dcaf (diff) |
Fix panic in redaction handling
Diffstat (limited to 'matrix/history.go')
-rw-r--r-- | matrix/history.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/history.go b/matrix/history.go index af81ed2..bcec304 100644 --- a/matrix/history.go +++ b/matrix/history.go @@ -123,7 +123,7 @@ func (hm *HistoryManager) Update(room *rooms.Room, eventID string, update func(e } stream := tx.Bucket(bucketRoomStreams).Bucket(rid) eventData := stream.Get(streamIndex) - if eventData == nil { + if eventData == nil || len(eventData) == 0 { return EventNotFoundError } |