Fixed issue #887 - Some notifications are marked as read initially.
This commit is contained in:
parent
090c6b6d98
commit
07e966c7e2
1 changed files with 13 additions and 12 deletions
|
@ -218,18 +218,19 @@ class App.OnlineNotificationContentWidget extends App.CollectionController
|
||||||
for item in items
|
for item in items
|
||||||
if !@alreadyShown[item.id]
|
if !@alreadyShown[item.id]
|
||||||
@alreadyShown[item.id] = true
|
@alreadyShown[item.id] = true
|
||||||
if @container.fetchedData
|
if !item.seen
|
||||||
item = @prepareForObjectListItem(item)
|
if @container.fetchedData
|
||||||
if item.objectNative && item.objectNative.activityMessage
|
item = @prepareForObjectListItem(item)
|
||||||
title = item.objectNative.activityMessage(item)
|
if item.objectNative && item.objectNative.activityMessage
|
||||||
else
|
title = item.objectNative.activityMessage(item)
|
||||||
title = "Need objectNative in item #{item.object}.find(#{item.o_id})"
|
else
|
||||||
title = App.Utils.html2text(title.replace(/<.+?>/g, '"'))
|
title = "Need objectNative in item #{item.object}.find(#{item.o_id})"
|
||||||
@notifyDesktop(
|
title = App.Utils.html2text(title.replace(/<.+?>/g, '"'))
|
||||||
url: item.link
|
@notifyDesktop(
|
||||||
title: title
|
url: item.link
|
||||||
)
|
title: title
|
||||||
App.OnlineNotification.play()
|
)
|
||||||
|
App.OnlineNotification.play()
|
||||||
|
|
||||||
onClick: =>
|
onClick: =>
|
||||||
@container.hide()
|
@container.hide()
|
||||||
|
|
Loading…
Reference in a new issue