Bugfix: i broke hasCheckedOrSelected()

This commit is contained in:
the-djmaze 2022-09-13 22:00:49 +02:00
parent a566f6ed5a
commit b01b18647a

View file

@ -129,10 +129,10 @@ MessagelistUserStore.hasChecked = koComputable(
).extend({ rateLimit: 0 }); ).extend({ rateLimit: 0 });
MessagelistUserStore.hasCheckedOrSelected = koComputable(() => MessagelistUserStore.hasCheckedOrSelected = koComputable(() =>
!!(MessagelistUserStore.selectedMessage() !!MessagelistUserStore.selectedMessage()
| MessagelistUserStore.focusedMessage() | !!MessagelistUserStore.focusedMessage()
// Issue: not all are observed? // Issue: not all are observed?
| MessagelistUserStore.find(isChecked)) | !!MessagelistUserStore.find(isChecked)
).extend({ rateLimit: 50 }); ).extend({ rateLimit: 50 });
MessagelistUserStore.notifyNewMessages = (folder, newMessages) => { MessagelistUserStore.notifyNewMessages = (folder, newMessages) => {