plugin OTR: fixed a bug which was tagging every message as "encrypted"
This commit is contained in:
parent
02dc38762e
commit
554248e108
1 changed files with 7 additions and 6 deletions
|
|
@ -694,13 +694,14 @@ class OTR(object):
|
|||
raise failure.Failure(
|
||||
exceptions.CancelError("Cancelled by OTR")
|
||||
) # no message at all (no history, no signal)
|
||||
client.encryption.markAsEncrypted(data)
|
||||
trusted = otrctx.isTrusted()
|
||||
|
||||
if trusted:
|
||||
client.encryption.markAsTrusted(data)
|
||||
else:
|
||||
client.encryption.markAsUntrusted(data)
|
||||
client.encryption.markAsEncrypted(data)
|
||||
trusted = otrctx.isTrusted()
|
||||
|
||||
if trusted:
|
||||
client.encryption.markAsTrusted(data)
|
||||
else:
|
||||
client.encryption.markAsUntrusted(data)
|
||||
|
||||
return data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue