Fix highlights not showing in mentions (#3801)
This commit is contained in:
@@ -170,11 +170,9 @@ void rebuildUserHighlights(Settings &settings,
|
||||
}
|
||||
|
||||
return HighlightResult{
|
||||
highlight.hasAlert(),
|
||||
highlight.hasSound(),
|
||||
highlightSoundUrl,
|
||||
highlight.getColor(),
|
||||
false, // showInMentions
|
||||
highlight.hasAlert(), highlight.hasSound(),
|
||||
highlightSoundUrl, highlight.getColor(),
|
||||
highlight.showInMentions(),
|
||||
};
|
||||
}});
|
||||
}
|
||||
@@ -344,6 +342,14 @@ std::pair<bool, HighlightResult> HighlightController::check(
|
||||
}
|
||||
}
|
||||
|
||||
if (checkResult->showInMentions)
|
||||
{
|
||||
if (!result.showInMentions)
|
||||
{
|
||||
result.showInMentions = checkResult->showInMentions;
|
||||
}
|
||||
}
|
||||
|
||||
if (result.full())
|
||||
{
|
||||
// The final highlight result does not have room to add any more parameters, early out
|
||||
|
||||
Reference in New Issue
Block a user