From 60e13566c6868f23f730bc6bc16ac4f05f7f2108 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 23 Oct 2024 21:15:14 -0500 Subject: [PATCH] Don't double up sender name --- snikket/Chat.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snikket/Chat.hx b/snikket/Chat.hx index 7df9d9f..d02ddcf 100644 --- a/snikket/Chat.hx +++ b/snikket/Chat.hx @@ -336,8 +336,6 @@ abstract class Chat { return switch (lastMessage.type) { case MessageCall: lastMessage.isIncoming() ? "Incoming Call" : "Outgoing Call"; - case MessageChannel: - getParticipantDetails(lastMessage.senderId()).displayName + ": " + lastMessage.text; default: lastMessage.text; } @@ -961,7 +959,8 @@ class Channel extends Chat { override public function preview() { if (lastMessage == null) return super.preview(); - return lastMessage.sender.resource + ": " + super.preview(); + + return getParticipantDetails(lastMessage.senderId()).displayName + ": " + super.preview(); } @:allow(snikket)