From 5999b71c416f02dc11803bf52a406b9109ddc3c1 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 27 Apr 2014 16:32:03 +0200 Subject: Fix #2106 (implement message delivery receipts) - two options request/ack_message_receipts - two new theme parameters : CHAR_ACK_RECEIVED and COLOR_CHAR_ACK - if a message has a receipt, the character is displayed between the timestamp and the nick, using the color --- src/connection.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/connection.py') diff --git a/src/connection.py b/src/connection.py index da26f25b..0af2b228 100644 --- a/src/connection.py +++ b/src/connection.py @@ -84,6 +84,13 @@ class Connection(sleekxmpp.ClientXMPP): self.plugin['xep_0077'].create_account = False self.register_plugin('xep_0085') self.register_plugin('xep_0115') + + self.register_plugin('xep_0184') + self.plugin['xep_0184'].auto_ack = config.get('ack_message_receipts', + True) + self.plugin['xep_0184'].auto_request = config.get( + 'request_message_receipts', True) + self.register_plugin('xep_0191') self.register_plugin('xep_0199') self.set_keepalive_values() -- cgit v1.2.3