Rename notifications.queued to read

This commit is contained in:
Artur Beljajev 2018-08-24 00:36:58 +03:00
parent dfff6f6d12
commit 7a9a7c052f
11 changed files with 30 additions and 23 deletions

View file

@ -10,7 +10,7 @@ xml.epp(
xml.msg 'Command completed successfully; ack to dequeue'
end
xml.tag!('msgQ', 'count' => current_user.queued_notifications.count, 'id' => @notification.id) do
xml.tag!('msgQ', 'count' => current_user.unread_notifications.count, 'id' => @notification.id) do
xml.qDate @notification.created_at.try(:iso8601)
xml.msg @notification.text
end