Skip to content

Commit

Permalink
feat(qq): ✨ prioritize the use of group cards (#32)
Browse files Browse the repository at this point in the history
* feat: ✨ support qq list && pic convert

* revert: 🔥 revert some test code

* remove unuse import

* feat(qq): ✨ Use group business cards first when sending messages on QQ

* refactor(qq): ♻️ refactor string handling

---------

Co-authored-by: Andy Zhang <[email protected]>
  • Loading branch information
Aimerny and AnzhiZhang authored Oct 2, 2024
1 parent 1473356 commit 8b96456
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,14 @@ public void consumeEvent() {
messages.add("[图片]");
}
}
String senderCard = curEvent.getSender().getCard();
String senderName = senderCard.isEmpty() ? curEvent.getSender().getNickname() : senderCard;
String content = String.join(" ", messages);
chatHub.getEventHub().onUserChat(new MessageEvent(
Platform.QQ, null, curEvent.getSender().getNickname(), content
platform,
null,
senderName,
content
));
}
}
Expand Down

0 comments on commit 8b96456

Please sign in to comment.