1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 00:15:51 +02:00

Rename user.readTime

This commit is contained in:
Toby Zerner
2018-08-24 21:35:46 +09:30
parent 70058652b5
commit d8d2de438f
6 changed files with 6 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ Object.assign(Discussion.prototype, {
unreadCount() {
const user = app.session.user;
if (user && user.readTime() < this.lastPostedAt()) {
if (user && user.markedAllAsReadAt() < this.lastPostedAt()) {
return Math.max(0, this.lastPostNumber() - (this.lastReadPostNumber() || 0));
}

View File

@@ -21,7 +21,7 @@ Object.assign(User.prototype, {
joinTime: Model.attribute('joinTime', Model.transformDate),
lastSeenAt: Model.attribute('lastSeenAt', Model.transformDate),
readTime: Model.attribute('readTime', Model.transformDate),
markedAllAsReadAt: Model.attribute('markedAllAsReadAt', Model.transformDate),
unreadNotificationsCount: Model.attribute('unreadNotificationsCount'),
newNotificationsCount: Model.attribute('newNotificationsCount'),