private static void HandleGroupChatSticker(GameSession session, PacketReader packet) { int stickerId = packet.ReadInt(); string groupChatName = packet.ReadUnicodeString(); // TODO: Check if user has sticker session.Send(ChatStickerPacket.GroupChatSticker(stickerId, groupChatName)); }
private static void HandleGroupChatSticker(GameSession session, PacketReader packet) { int stickerId = packet.ReadInt(); string groupChatName = packet.ReadUnicodeString(); byte groupId = ChatStickerMetadataStorage.GetGroupId(stickerId); if (!session.Player.ChatSticker.Any(p => p.GroupId == groupId)) { return; } session.Send(ChatStickerPacket.GroupChatSticker(stickerId, groupChatName)); }