Fix #3182 (/xhtml should send message with type=chat)

This commit is contained in:
mathieui 2016-04-09 21:53:11 +02:00
parent 12ef4f0e0e
commit 6a2c4a61c4

View file

@ -763,6 +763,7 @@ class OneToOneTab(ChatTab):
def command_xhtml(self, xhtml_data): def command_xhtml(self, xhtml_data):
message = self.generate_xhtml_message(xhtml_data) message = self.generate_xhtml_message(xhtml_data)
if message: if message:
message['type'] = 'chat'
if self.remote_supports_receipts: if self.remote_supports_receipts:
message._add_receipt = True message._add_receipt = True
if self.remote_wants_chatstates: if self.remote_wants_chatstates: