Skip to content

Commit

Permalink
fix: subscribed threads not being marked as subscribed (Chatterino#5668)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada authored Oct 21, 2024
1 parent 867e3f3 commit 45d2c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
- Dev: Emojis now use flags instead of a set of strings for capabilities. (#5616)
- Dev: Move plugins to Sol2. (#5622)
- Dev: Refactored static `MessageBuilder` helpers to standalone functions. (#5652)
- Dev: Decoupled reply parsing from `MessageBuilder`. (#5660)
- Dev: Decoupled reply parsing from `MessageBuilder`. (#5660, #5668)
- Dev: Refactored IRC message building. (#5663)

## 2.5.1
Expand Down
5 changes: 5 additions & 0 deletions src/messages/MessageBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2382,6 +2382,11 @@ void MessageBuilder::parseThread(const QString &messageContent,
this->message().replyParent = parent;
thread->addToThread(std::weak_ptr{this->message_});

if (thread->subscribed())
{
this->message().flags.set(MessageFlag::SubscribedThread);
}

// enable reply flag
this->message().flags.set(MessageFlag::ReplyMessage);

Expand Down

0 comments on commit 45d2c29

Please sign in to comment.