feat: add setting to pulse split input on self message received (#6380)

This commit is contained in:
pajlada
2025-08-18 01:24:39 +02:00
committed by GitHub
parent 1b9ed11a67
commit 1afac3382e
15 changed files with 136 additions and 13 deletions
+15
View File
@@ -854,6 +854,21 @@ void Split::setChannel(IndirectChannel newChannel)
this->actionRequested.invoke(Action::RefreshTab);
});
QObject::connect(
this->view_, &ChannelView::messageAddedToChannel, this,
[this](MessagePtr &message) {
if (!getSettings()->pulseTextInputOnSelfMessage)
{
return;
}
auto user = getApp()->getAccounts()->twitch.getCurrent();
if (!user->isAnon() && message->userID == user->getUserId())
{
// A message from yourself was just received in this split
this->input_->triggerSelfMessageReceived();
}
});
this->channelChanged.invoke();
this->actionRequested.invoke(Action::RefreshTab);