chore: reformat emote initializer

This commit is contained in:
iProdigy 2024-10-21 15:23:52 -07:00
parent c7512dc734
commit 6d376b5416

View file

@ -383,13 +383,14 @@ EmotePtr makeAutoModBadge()
EmotePtr makeSharedChatBadge(const QString &sourceName) EmotePtr makeSharedChatBadge(const QString &sourceName)
{ {
return std::make_shared<Emote>( return std::make_shared<Emote>(Emote{
Emote{EmoteName{}, .name = EmoteName{},
ImageSet{Image::fromResourcePixmap( .images = ImageSet{Image::fromResourcePixmap(
getResources().twitch.sharedChat, 0.25)}, getResources().twitch.sharedChat, 0.25)},
Tooltip{"Shared Message" + .tooltip = Tooltip{"Shared Message" +
(sourceName.isEmpty() ? "" : " from " + sourceName)}, (sourceName.isEmpty() ? "" : " from " + sourceName)},
Url{"https://link.twitch.tv/SharedChatViewer"}}); .homePage = Url{"https://link.twitch.tv/SharedChatViewer"},
});
} }
std::tuple<std::optional<EmotePtr>, MessageElementFlags, bool> parseEmote( std::tuple<std::optional<EmotePtr>, MessageElementFlags, bool> parseEmote(