From f260495495bf90c93dd0d958b19d925b57b62e3e Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sun, 7 Aug 2022 08:38:52 +1200 Subject: [PATCH] UI: Update pagination values when new mail arrives when not on first page --- server/ui-src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/ui-src/App.vue b/server/ui-src/App.vue index 82a1f4d..781c78c 100644 --- a/server/ui-src/App.vue +++ b/server/ui-src/App.vue @@ -210,12 +210,14 @@ export default { } // new messages if (response.Type == "new" && response.Data) { - if (self.start < 1) { - if (!self.searching) { + if (!self.searching) { + if (self.start < 1) { self.items.unshift(response.Data); if (self.items.length > self.limit) { self.items.pop(); } + } else { + self.start++; } } self.total++;