| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-06-19 14:59:01 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-06-19 14:59:01 UTC |
| parent | d8578c494376ca33ea7aff01b6f7e8bd6b1e5a13 |
| snikket/Chat.hx | +2 | -2 |
diff --git a/snikket/Chat.hx b/snikket/Chat.hx index 7c905e9..d417d96 100644 --- a/snikket/Chat.hx +++ b/snikket/Chat.hx @@ -407,7 +407,7 @@ class DirectChat extends Chat { @HaxeCBridge.noemit // on superclass as abstract public function getParticipantDetails(participantId:String, callback:(String, String)->Void) { final chat = client.getDirectChat(participantId); - chat.getPhoto((photoUri) -> callback(photoUri, chat.getDisplayName())); + chat.getPhoto((photoUri) -> callback(chat.getDisplayName(), photoUri)); } @HaxeCBridge.noemit // on superclass as abstract @@ -753,7 +753,7 @@ class Channel extends Chat { public function getParticipantDetails(participantId:String, callback:(String, String)->Void) { if (participantId == getFullJid().asString()) { client.getDirectChat(client.accountId(), false).getPhoto((photoUri) -> { - callback(photoUri, client.displayName()); + callback(client.displayName(), photoUri); }); } else { final nick = JID.parse(participantId).resource;