Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[buteo-sync-plugins-social] Use low priority on twitter notifications…
…. Contributes to JB#51797
  • Loading branch information
pvuorela committed Oct 30, 2020
1 parent bdcb766 commit 79b17b1
Showing 1 changed file with 4 additions and 8 deletions.
Expand Up @@ -300,8 +300,7 @@ void TwitterNotificationSyncAdaptor::finishedMentionsHandler()
notification->setBody(qtTrId("qtn_social_notifications_twitter_n_mentions_include_n", notification->itemCount()));
openUrlArgs << QLatin1String("https://mobile.twitter.com/i/connect");
}
notification->clearPreviewSummary();
notification->clearPreviewBody();
notification->setUrgency(Notification::Low);
notification->setRemoteAction(OPEN_BROWSER_ACTION(openUrlArgs));
notification->publish();
if (notification->replacesId() == 0) {
Expand Down Expand Up @@ -399,8 +398,7 @@ void TwitterNotificationSyncAdaptor::finishedRetweetsHandler()
notification->setBody(qtTrId("qtn_social_notifications_twitter_m_n_retweets_include_n", delta));
openUrlArgs << QLatin1String("https://mobile.twitter.com/i/connect");
}
notification->clearPreviewSummary();
notification->clearPreviewBody();
notification->setUrgency(Notification::Low);
notification->setRemoteAction(OPEN_BROWSER_ACTION(openUrlArgs));
notification->publish();
if (notification->replacesId() == 0) {
Expand Down Expand Up @@ -510,8 +508,7 @@ void TwitterNotificationSyncAdaptor::finishedFollowersHandler()
//: The number of new followers (n) the user has on Twitter. Include n. e.g. "You" + "have 5 new followers".
//% "have %n new followers"
notification->setBody(qtTrId("qtn_social_notifications_n_followers_include_n", notification->itemCount()));
notification->clearPreviewSummary();
notification->clearPreviewBody();
notification->setUrgency(Notification::Low);

QStringList openUrlArgs;
openUrlArgs << QLatin1String("https://mobile.twitter.com/i/connect");
Expand Down Expand Up @@ -565,8 +562,7 @@ void TwitterNotificationSyncAdaptor::finishedUserShowHandler()
//: Text telling the user that another user has followed them, e.g.: "John Smith" + "followed you".
//% "followed you"
notification->setBody(qtTrId("qtn_social_notifications_twitter_followed_you"));
notification->clearPreviewSummary();
notification->clearPreviewBody();
notification->setUrgency(Notification::Low);

QStringList openUrlArgs;
openUrlArgs << QLatin1String("https://mobile.twitter.com/i/connect");
Expand Down

0 comments on commit 79b17b1

Please sign in to comment.