core: fixed default message type
This commit is contained in:
parent
5686c14a64
commit
9951b0b116
1 changed files with 4 additions and 4 deletions
|
|
@ -140,8 +140,8 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
|||
return
|
||||
for e in message.elements():
|
||||
if e.name == "body":
|
||||
type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs
|
||||
self.host.bridge.newMessage(message["from"], e.children[0], type, profile=self.parent.profile)
|
||||
mess_type = message['type'] if message.hasAttribute('type') else 'normal'
|
||||
self.host.bridge.newMessage(message["from"], e.children[0], mess_type, profile=self.parent.profile)
|
||||
self.host.memory.addToHistory(self.parent.jid, jid.JID(message["from"]), self.parent.jid, "chat", e.children[0])
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue