Remove the domain from the buddy name before message is sent
This commit is contained in:
parent
0c17a497ee
commit
6b1b714d3c
|
@ -494,7 +494,7 @@ class SpectrumLayer(YowInterfaceLayer):
|
||||||
|
|
||||||
@ProtocolEntityCallback("message")
|
@ProtocolEntityCallback("message")
|
||||||
def onMessageReceived(self, messageEntity):
|
def onMessageReceived(self, messageEntity):
|
||||||
buddy = messageEntity.getFrom()
|
buddy = messageEntity.getFrom().split('@')[0]
|
||||||
messageContent = utils.softToUni(messageEntity.getBody())
|
messageContent = utils.softToUni(messageEntity.getBody())
|
||||||
timestamp = messageEntity.getTimestamp()
|
timestamp = messageEntity.getTimestamp()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue