Notify the user whenever the lock state of a dynamic conversation changes
This commit is contained in:
parent
186803d9a9
commit
fba511e266
1 changed files with 6 additions and 2 deletions
|
@ -385,7 +385,9 @@ class DynamicConversationTab(ConversationTab):
|
||||||
Lock the tab to the resource.
|
Lock the tab to the resource.
|
||||||
"""
|
"""
|
||||||
assert(resource)
|
assert(resource)
|
||||||
|
if resource != self.locked_resource:
|
||||||
self.locked_resource = resource
|
self.locked_resource = resource
|
||||||
|
self.add_message(_('Conversation locked to %s/%s.') % (self.name, resource), typ=0)
|
||||||
|
|
||||||
def unlock_command(self, arg=None):
|
def unlock_command(self, arg=None):
|
||||||
self.unlock()
|
self.unlock()
|
||||||
|
@ -396,7 +398,9 @@ class DynamicConversationTab(ConversationTab):
|
||||||
Unlock the tab from a resource. It is now “associated” with the bare
|
Unlock the tab from a resource. It is now “associated” with the bare
|
||||||
jid.
|
jid.
|
||||||
"""
|
"""
|
||||||
|
if self.locked_resource != None:
|
||||||
self.locked_resource = None
|
self.locked_resource = None
|
||||||
|
self.add_message(_('Conversation unlocked.'), typ=0)
|
||||||
|
|
||||||
def get_dest_jid(self):
|
def get_dest_jid(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue