mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Always ensure notifications are treated as read once clicked
UX: improve messaging so notifications list is far more stable PERF: improve performance of notifcation lookup queries - Add feature "SetTransientHeader" that allows shipping info to server in the next Ajax request - remove local storage hack used for notifications - amend lookupStale to return hydrated objects, move logic into store - stop magically clearing various notifications (likes, invitee accepted, group_summary, granted badge)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddUnreadPmIndexToNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
# create index idxtmp on notifications(user_id, id) where notification_type = 6 AND NOT read
|
||||
add_index :notifications, [:user_id, :id], unique: true, where: 'notification_type = 6 AND NOT read'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user