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: else:
kind = 'outgoing' kind = 'outgoing'
name = gajim.nicks[self.account] name = gajim.nicks[self.account]
if not xhtml and not encrypted and gajim.config.get( if not xhtml and not (encrypted and self.gpg_is_active) and \
'rst_formatting_outgoing_messages'): gajim.config.get('rst_formatting_outgoing_messages'):
from common.rst_xhtml_generator import create_xhtml from common.rst_xhtml_generator import create_xhtml
xhtml = create_xhtml(text) xhtml = create_xhtml(text)
if xhtml: if xhtml: