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)
{
return std::make_shared<Emote>(
Emote{EmoteName{},
ImageSet{Image::fromResourcePixmap(
getResources().twitch.sharedChat, 0.25)},
Tooltip{"Shared Message" +
(sourceName.isEmpty() ? "" : " from " + sourceName)},
Url{"https://link.twitch.tv/SharedChatViewer"}});
return std::make_shared<Emote>(Emote{
.name = EmoteName{},
.images = ImageSet{Image::fromResourcePixmap(
getResources().twitch.sharedChat, 0.25)},
.tooltip = Tooltip{"Shared Message" +
(sourceName.isEmpty() ? "" : " from " + sourceName)},
.homePage = Url{"https://link.twitch.tv/SharedChatViewer"},
});
}
std::tuple<std::optional<EmotePtr>, MessageElementFlags, bool> parseEmote(