Make mods, vips, joined/parted messages searchable (#3426)

This commit is contained in:
pajlada 2021-12-25 18:35:55 +01:00 committed by GitHub
parent 1662ced2c7
commit aa1c16d90d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,7 @@
- Minor: Add support for Emoji in IRC (#3354)
- Minor: Moved `/live` logs to its own subdirectory. (Logs from before this change will still be available in `Channels -> live`). (#3393)
- Minor: Sorted usernames in `Users joined/parted` messages alphabetically. (#3421)
- Minor: Mod list, VIP list, and Users joined/parted messages are now searchable. (#3426)
- Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362)
- Bugfix: Fixed colored usernames sometimes not working. (#3170)
- Bugfix: Restored ability to send duplicate `/me` messages. (#3166)

View file

@ -1464,6 +1464,11 @@ void TwitchMessageBuilder::listOfUsersSystemMessage(QString prefix,
Channel *channel,
MessageBuilder *builder)
{
QString text = prefix + users.join(", ");
builder->message().messageText = text;
builder->message().searchText = text;
builder->emplace<TimestampElement>();
builder->message().flags.set(MessageFlag::System);
builder->message().flags.set(MessageFlag::DoNotTriggerNotification);