disable RST generator only for GPG encrypted messages, not E2E

This commit is contained in:
Yann Leboulanger 2009-08-30 11:58:41 +02:00
parent f991a75e43
commit cac215909b
1 changed files with 2 additions and 2 deletions

View File

@ -1989,8 +1989,8 @@ class ChatControl(ChatControlBase):
else:
kind = 'outgoing'
name = gajim.nicks[self.account]
if not xhtml and not encrypted and gajim.config.get(
'rst_formatting_outgoing_messages'):
if not xhtml and not (encrypted and self.gpg_is_active) and \
gajim.config.get('rst_formatting_outgoing_messages'):
from common.rst_xhtml_generator import create_xhtml
xhtml = create_xhtml(text)
if xhtml: