don't try to start archiving session if server doesn't support it. Fixes #5845

This commit is contained in:
Yann Leboulanger 2010-08-12 11:03:04 +02:00
parent 6474ea0d98
commit a604f75912
1 changed files with 2 additions and 1 deletions

View File

@ -2677,7 +2677,8 @@ class ChatControl(ChatControlBase):
if want_e2e and not self.no_autonegotiation \
and gajim.HAVE_PYCRYPTO and self.contact.supports(NS_ESESSION):
self.begin_e2e_negotiation()
elif not self.session or not self.session.status:
elif (not self.session or not self.session.status) and \
gajim.connections[self.account].archiving_supported:
self.begin_archiving_negotiation()
else:
self.send_chatstate('active', self.contact)