Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added stream titles to windows toast notifications #2044

Merged
merged 15 commits into from
Oct 30, 2022

Conversation

Y0dax
Copy link
Contributor

@Y0dax Y0dax commented Oct 8, 2020

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

I noticed that toasts are due to be refactored to be cross platform, so this change may or may not be value add at the moment. It's pretty basic, just adding the stream title to the notification and could also be used for the cross platform approach.

Partially closes #1297

src/singletons/Toasts.cpp Outdated Show resolved Hide resolved
@zneix zneix mentioned this pull request Aug 24, 2021
1 task
@pajlada pajlada enabled auto-merge (squash) October 30, 2022 11:55
@pajlada pajlada merged commit d23d5c1 into Chatterino:master Oct 30, 2022
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -66,11 +66,12 @@ QString Toasts::findStringFromReaction(
return Toasts::findStringFromReaction(static_cast<ToastReaction>(i));
}

void Toasts::sendChannelNotification(const QString &channelName, Platform p)
void Toasts::sendChannelNotification(const QString &channelName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'sendChannelNotification' can be made static [readability-convert-member-functions-to-static]

src/singletons/Toasts.hpp:21:

-     void sendChannelNotification(const QString &channelName,
+     static void sendChannelNotification(const QString &channelName,

@@ -66,11 +66,12 @@
return Toasts::findStringFromReaction(static_cast<ToastReaction>(i));
}

void Toasts::sendChannelNotification(const QString &channelName, Platform p)
void Toasts::sendChannelNotification(const QString &channelName,
const QString &channelTitle, Platform p)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'channelTitle' is unused [misc-unused-parameters]

Suggested change
const QString &channelTitle, Platform p)
const QString & /*channelTitle*/, Platform p)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding title and game category in the notification.
3 participants