feat: delete messages from context menu (#5956)

This commit is contained in:
nerix
2025-02-15 19:29:25 +01:00
committed by GitHub
parent 9afd60534a
commit dd6f204adc
8 changed files with 89 additions and 55 deletions
+7
View File
@@ -59,6 +59,7 @@ struct HelixGlobalBadges;
using HelixChannelBadges = HelixGlobalBadges;
class TwitchIrcServer;
class TwitchAccount;
const int MAX_QUEUED_REDEMPTIONS = 16;
@@ -164,6 +165,12 @@ public:
QString getCurrentStreamID() const override;
void createClip();
/// Delete the message with the specified ID as a moderator.
///
/// If the ID is empty, all messages will be deleted, effectively clearing
/// the chat.
void deleteMessagesAs(const QString &messageID, TwitchAccount *moderator);
// Data
const QString &subscriptionUrl();
const QString &channelUrl();