Fix emote conflicts in recent emotes panel

This commit is contained in:
tommyxchow 2022-03-30 15:16:48 -04:00
parent e057ea0b09
commit 92caa2f572

View file

@ -42,7 +42,7 @@ class RecentEmotesPanel extends StatelessWidget {
(context, index) {
final emote = assetsStore.recentEmotes[index];
final validEmotes = [...assetsStore.emoteToObject.values, ...assetsStore.userEmoteToObject.values];
final matchingEmotes = validEmotes.where((existingEmote) => existingEmote.name == emote.name);
final matchingEmotes = validEmotes.where((existingEmote) => existingEmote.name == emote.name && existingEmote.type == emote.type);
return GestureDetector(
onTap: matchingEmotes.isNotEmpty