parent
94607a2f6b
commit
03d28342f8
|
@ -21,8 +21,10 @@ if generate_vapid_key?
|
||||||
SiteSetting.vapid_public_key_bytes = Base64.urlsafe_decode64(SiteSetting.vapid_public_key).bytes.join("|")
|
SiteSetting.vapid_public_key_bytes = Base64.urlsafe_decode64(SiteSetting.vapid_public_key).bytes.join("|")
|
||||||
SiteSetting.vapid_base_url = Discourse.base_url
|
SiteSetting.vapid_base_url = Discourse.base_url
|
||||||
|
|
||||||
|
if ActiveRecord::Base.connection.table_exists?(:push_subscriptions)
|
||||||
PushSubscription.delete_all
|
PushSubscription.delete_all
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
DiscourseEvent.on(:user_logged_out) do |user|
|
DiscourseEvent.on(:user_logged_out) do |user|
|
||||||
PushNotificationPusher.clear_subscriptions(user)
|
PushNotificationPusher.clear_subscriptions(user)
|
||||||
|
|
Loading…
Reference in New Issue