mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Change default for push_notification_time_window_mins (#28431)
Currently the push_notification_time_window_mins is set to 10 minutes by default. We want to change this to 1 minute, which is the delay it has been set to on meta and our internal site already for over a year now. This conforms to the expectation users have that notifications are delivered close to immediately.
This commit is contained in:
parent
f41c4ccfc2
commit
e9b427ff53
@ -363,7 +363,7 @@ basic:
|
|||||||
default: true
|
default: true
|
||||||
client: true
|
client: true
|
||||||
push_notification_time_window_mins:
|
push_notification_time_window_mins:
|
||||||
default: 10
|
default: 1
|
||||||
min: 0
|
min: 0
|
||||||
short_title:
|
short_title:
|
||||||
default: ""
|
default: ""
|
||||||
|
@ -1360,6 +1360,7 @@ RSpec.describe PostAlerter do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "delays push notification for active online user" do
|
it "delays push notification for active online user" do
|
||||||
|
SiteSetting.push_notification_time_window_mins = 10
|
||||||
evil_trout.update!(last_seen_at: 5.minutes.ago)
|
evil_trout.update!(last_seen_at: 5.minutes.ago)
|
||||||
|
|
||||||
expect { mention_post }.to change { Jobs::PushNotification.jobs.count }
|
expect { mention_post }.to change { Jobs::PushNotification.jobs.count }
|
||||||
|
Loading…
Reference in New Issue
Block a user