refactor: irc message builder (#5663)

This commit is contained in:
nerix
2024-10-20 12:40:48 +02:00
committed by GitHub
parent 352a4ec132
commit e35fabfabe
12 changed files with 703 additions and 804 deletions
+2 -2
View File
@@ -285,9 +285,9 @@ TEST_F(FiltersF, TypingContextChecks)
QString originalMessage = privmsg->content();
MessageBuilder builder(&channel, privmsg, MessageParseArgs{});
auto [msg, alert] = MessageBuilder::makeIrcMessage(
&channel, privmsg, MessageParseArgs{}, originalMessage, 0);
auto msg = builder.build();
EXPECT_NE(msg.get(), nullptr);
auto contextMap = buildContextMap(msg, &channel);