use wcf\data\IPopoverAction;
use wcf\data\IVisitableObjectAction;
use wcf\data\user\group\UserGroup;
+use wcf\data\user\User;
use wcf\page\ConversationPage;
use wcf\system\clipboard\ClipboardHandler;
use wcf\system\conversation\ConversationHandler;
$usernames = [$conversation->getOtherParticipantProfile()->username];
}
} else {
- $image = $conversation->getUserProfile()->getAvatar()->getImageTag(48);
- $usernames = [$conversation->getUserProfile()->username];
+ if ($conversation->participants > 1) {
+ $image = '<span class="icon icon48 fa-users"></span>';
+ $usernames = \array_filter($conversation->getParticipantSummary(), function (User $user) {
+ return $user->userID !== WCF::getUser()->userID;
+ });
+ } else {
+ $image = $conversation->getUserProfile()->getAvatar()->getImageTag(48);
+ $usernames = [$conversation->getUserProfile()->username];
+ }
}
$link = LinkHandler::getInstance()->getControllerLink(