From dd2a6d1d6552476db671ad77d55d549122947954 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 26 Jan 2013 05:22:12 +0100 Subject: Implement XEP 296 for locking resource in conversations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With a few specific behaviours: When manually opening a conversation with a bare jid, we open a normal conversation that follows the XEP (locked and unlocked accordingly). If the user manually opens a conversation with a fulljid (by selecting a specific resource in the roster, or by specifying a fulljid to the /message command), we open a special tab that doesn’t follow the XEP (it is always locked to the same resource, and cannot be unlocked). When a message is received, unless a special tab has been manually opened by the other with that specific resource, we always send the messages to a uniq normal tab, unlocking or locking it according to the XEP. This means that only one tab can be opened with a given contact, unless the user specifically chooses to open a special tab for a specific resource. fixes #2159 --- src/theming.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 07a37c6e..dd933fc7 100644 --- a/src/theming.py +++ b/src/theming.py @@ -184,6 +184,7 @@ class Theme(object): COLOR_SELECTED_ROW = (-1, 33) COLOR_PRIVATE_NAME = (-1, 4) COLOR_CONVERSATION_NAME = (2, 4) + COLOR_CONVERSATION_RESOURCE = (121, 4) COLOR_GROUPCHAT_NAME = (7, 4) COLOR_COLUMN_HEADER = (36, 4) COLOR_COLUMN_HEADER_SEL = (4, 36) -- cgit v1.2.3