mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Sorted usernames in "Users joined/parted:" messages (#3421)
This commit is contained in:
parent
cd77d14485
commit
45e4fc04ef
|
@ -38,6 +38,7 @@
|
|||
- Minor: Show picked outcome in prediction badges. (#3357)
|
||||
- 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)
|
||||
- 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)
|
||||
|
|
|
@ -34,13 +34,15 @@ void ChannelChatters::addJoinedUser(const QString &user)
|
|||
|
||||
QTimer::singleShot(500, &this->lifetimeGuard_, [this] {
|
||||
auto joinedUsers = this->joinedUsers_.access();
|
||||
joinedUsers->sort();
|
||||
|
||||
MessageBuilder builder;
|
||||
TwitchMessageBuilder::listOfUsersSystemMessage(
|
||||
"Users joined:", *joinedUsers, &this->channel_, &builder);
|
||||
builder->flags.set(MessageFlag::Collapsed);
|
||||
joinedUsers->clear();
|
||||
this->channel_.addMessage(builder.release());
|
||||
|
||||
joinedUsers->clear();
|
||||
this->joinedUsersMergeQueued_ = false;
|
||||
});
|
||||
}
|
||||
|
@ -57,14 +59,15 @@ void ChannelChatters::addPartedUser(const QString &user)
|
|||
|
||||
QTimer::singleShot(500, &this->lifetimeGuard_, [this] {
|
||||
auto partedUsers = this->partedUsers_.access();
|
||||
partedUsers->sort();
|
||||
|
||||
MessageBuilder builder;
|
||||
TwitchMessageBuilder::listOfUsersSystemMessage(
|
||||
"Users parted:", *partedUsers, &this->channel_, &builder);
|
||||
builder->flags.set(MessageFlag::Collapsed);
|
||||
this->channel_.addMessage(builder.release());
|
||||
partedUsers->clear();
|
||||
|
||||
partedUsers->clear();
|
||||
this->partedUsersMergeQueued_ = false;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue