Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Add missing check to create command
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Apr 15, 2024
1 parent c8f2f78 commit cd13814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ func fnCreate(ce *WrappedCommandEvent) {
}
portal.MXID = ce.RoomID
portal.Name = roomName
portal.Encrypted = encryptionEvent.Algorithm == id.AlgorithmMegolmV1
portal.Encrypted = encryptionEvent != nil && encryptionEvent.Algorithm == id.AlgorithmMegolmV1
if !portal.Encrypted && ce.Bridge.Config.Bridge.Encryption.Default {
_, err = portal.MainIntent().SendStateEvent(ce.Ctx, portal.MXID, event.StateEncryption, "", portal.GetEncryptionEventContent())
if err != nil {
Expand Down

0 comments on commit cd13814

Please sign in to comment.