When I have joined a MUC room with XMPPFramwork I receive new messages via the delegate method:
func xmppRoom(sender: XMPPRoom!, didReceiveMessage message: XMPPMessage!, fromOccupant occupantJID: XMPPJID!) {
}
How can I get the nickname of the user who send the message?
I tried message.from().user
but this did not print the nickname.
I now use message.fromStr())!.lastPathComponent!
but this feels very wrong.
Any better way to do this?