fix encrypted thread reply, fix From header in thread reply
This commit is contained in:
@@ -69,6 +69,10 @@ func (b *Bot) onEncryptedMessage(evt *event.Event) {
|
||||
if evt.Sender == b.lp.GetClient().UserID {
|
||||
return
|
||||
}
|
||||
// ignore encrypted events in noecryption mode
|
||||
if b.lp.GetMachine() == nil {
|
||||
return
|
||||
}
|
||||
ctx := newContext(evt)
|
||||
|
||||
decrypted, err := b.lp.GetMachine().DecryptMegolmEvent(evt)
|
||||
|
||||
Reference in New Issue
Block a user