chore(eventsub): add operator== and indicator for shared chat (#5974)

This commit is contained in:
nerix
2025-02-22 20:55:20 +01:00
committed by GitHub
parent f540be3446
commit 7fee3f7e37
7 changed files with 98 additions and 10 deletions
@@ -0,0 +1,11 @@
#include "twitch-eventsub-ws/payloads/channel-moderate-v2.hpp"
namespace chatterino::eventsub::lib::payload::channel_moderate::v2 {
bool Event::isFromSharedChat() const noexcept
{
return this->sourceBroadcasterUserID && this->sourceBroadcasterUserLogin &&
this->sourceBroadcasterUserName &&
*this->sourceBroadcasterUserID != this->broadcasterUserID;
}
} // namespace chatterino::eventsub::lib::payload::channel_moderate::v2