Mark OTR messages as private (as in carbons)
This commit is contained in:
parent
a724be0e72
commit
e06eac8182
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ class PoezioContext(Context):
|
|||
return False
|
||||
|
||||
def inject(self, msg, appdata=None):
|
||||
self.xmpp.send_message(mto=self.peer, mbody=msg.decode('ascii'), mtype='chat')
|
||||
message = self.xmpp.make_message(mto=self.peer, mbody=msg.decode('ascii'), mtype='chat')
|
||||
message.enable('carbon_private')
|
||||
message.send()
|
||||
|
||||
def setState(self, newstate):
|
||||
tab = self.core.get_tab_by_name(self.peer)
|
||||
|
|
Loading…
Reference in a new issue