mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Compare commits
3 commits
0e51ce0eb9
...
4af7210f70
Author | SHA1 | Date | |
---|---|---|---|
4af7210f70 | |||
802edeb8de | |||
d3eacc5d8d |
|
@ -239,13 +239,13 @@ public:
|
|||
/// content = "there"
|
||||
/// messageOffset_ = 4
|
||||
/// The index 6 would resolve to 6 - 4 = 2 => 'e'
|
||||
/// @param thread The reply thred this message is part of. If there's no
|
||||
/// @param thread The reply thread this message is part of. If there's no
|
||||
/// thread, this is an empty `shared_ptr`.
|
||||
/// @param parent The direct parent this message is replying to. This does
|
||||
/// not need to be the `thread`s root. If this message isn't
|
||||
/// replying to anything, this is an empty `shared_ptr`.
|
||||
///
|
||||
/// @returns The built messagae and a highlight result.
|
||||
/// @returns The built message and a highlight result.
|
||||
static std::pair<MessagePtrMut, HighlightAlert> makeIrcMessage(
|
||||
Channel *channel, const Communi::IrcMessage *ircMessage,
|
||||
const MessageParseArgs &args, QString content,
|
||||
|
|
|
@ -512,6 +512,8 @@ std::vector<MessagePtr> parseUserNoticeMessage(Channel *channel,
|
|||
|
||||
auto [built, highlight] = MessageBuilder::makeIrcMessage(
|
||||
channel, message, args, content, 0);
|
||||
if (built)
|
||||
{
|
||||
built->flags.set(MessageFlag::Subscription);
|
||||
built->flags.unset(MessageFlag::Highlighted);
|
||||
if (mirrored)
|
||||
|
@ -521,6 +523,7 @@ std::vector<MessagePtr> parseUserNoticeMessage(Channel *channel,
|
|||
builtMessages.emplace_back(std::move(built));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto it = tags.find("system-msg");
|
||||
|
||||
|
|
Loading…
Reference in a new issue