fix build

This commit is contained in:
ouwou committed 2021-01-25 00:18:08 -05:00
1 parent 3923acd0dd
commit 092cd3291b
1 file changed
+1 -1
+1 -1
View File
@@ -266,7 +266,7 @@ void GuildSettingsAuditLogPane::OnAuditLogFetch(const AuditLogData &data) {
const auto role = discord.GetRole(entry.TargetID);
markup = "<b>" + user.GetEscapedString() + "</b> " +
"updated the role <b>" +
(role.has_value() ? Glib::Markup::escape_text(role->Name) : entry.TargetID) +
(role.has_value() ? Glib::Markup::escape_text(role->Name) : Glib::ustring(entry.TargetID)) +
"</b>";
if (entry.Changes.has_value())
for (const auto &change : *entry.Changes) {