Skip to content

Commit

Permalink
forgot user new events filter fix Ylianst#6189
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Jun 20, 2024
1 parent 6b21bac commit 81557ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions views/default.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -3141,10 +3141,12 @@

if (currentUser && (message.event.userid == currentUser._id)) {
// If this event has a userid and we are looking at this user, update the log in real time.
currentUserEvents.unshift(message.event);
var eventLimit = parseInt(p31limitdropdown.value);
while (currentUserEvents.length > eventLimit) { currentUserEvents.pop(); } // Remove element(s) at the end
mainUpdate(2048);
if ((message.event.action == p31filterevents.value) || (p31filterevents.value == "")) {
currentUserEvents.unshift(message.event);
var eventLimit = parseInt(p31limitdropdown.value);
while (currentUserEvents.length > eventLimit) { currentUserEvents.pop(); } // Remove element(s) at the end
mainUpdate(2048);
}
}

// Add this event to the main events log.
Expand Down

0 comments on commit 81557ab

Please sign in to comment.