Mercurial > libervia-backend
diff src/plugins/plugin_sec_otr.py @ 1171:0abce7f17782
core: a new "info" type is used in newMessage for system messages (not comming from outside)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Sep 2014 19:29:30 +0200 |
parents | 2df6427a5299 |
children | bc811915a96a |
line wrap: on
line diff
--- a/src/plugins/plugin_sec_otr.py Fri Sep 05 11:16:38 2014 +0200 +++ b/src/plugins/plugin_sec_otr.py Fri Sep 05 19:29:30 2014 +0200 @@ -106,10 +106,9 @@ return client = self.user.client - # FIXME: newMessage should manage system message, so they don't appear as coming from the contact self.host.bridge.newMessage(client.jid.full(), feedback, - mess_type="headline", + mess_type=C.MESS_TYPE_INFO, to_jid=self.peer.full(), extra={}, profile=client.profile) @@ -413,7 +412,7 @@ client = self.host.getClient(profile) self.host.bridge.newMessage(from_jid.full(), _(u"WARNING: received unencrypted data in a supposedly encrypted context"), - mess_type="headline", # FIXME: add message type for internal informations + mess_type=C.MESS_TYPE_INFO, to_jid=client.jid.full(), extra={}, profile=client.profile) @@ -454,7 +453,7 @@ client = self.host.getClient(profile) self.host.bridge.newMessage(to_jid.full(), feedback, - mess_type="headline", + mess_type=C.MESS_TYPE_INFO, to_jid=client.jid.full(), extra={}, profile=client.profile)