mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
1 parent
47701e880a
commit
1a7e5c248f
3 files changed
+8
-1
No files matched your search
@@ -192,6 +192,7 @@
|
||||
|
||||
if (index >= 0 && index < this.$messages.length) {
|
||||
message = this.$messages[index];
|
||||
this.$lastVisibleIndex = Math.max(0, index - 3); // Magic number is NUM_EXTRA from virtual-repeater.js
|
||||
|
||||
if (this.$loadMessage(message.uid))
|
||||
return message;
|
||||
|
||||
@@ -133,7 +133,10 @@
|
||||
try {
|
||||
if (nextMessage) {
|
||||
state.go('mail.account.mailbox.message', { messageId: nextMessage.uid });
|
||||
mailbox.$topIndex = nextIndex;
|
||||
if (nextIndex < mailbox.$topIndex)
|
||||
mailbox.$topIndex = nextIndex;
|
||||
else if (nextIndex > mailbox.$lastVisibleIndex)
|
||||
mailbox.$topIndex = nextIndex - (mailbox.$lastVisibleIndex - mailbox.$topIndex);
|
||||
}
|
||||
else {
|
||||
state.go('mail.account.mailbox');
|
||||
|
||||
Reference in new issue
Block a user