mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
fix: message history issues
- Display loading indicator on login when mailserver messages are requested - Fix bug where the mailserver that's selected as soon as you login is disconnected while being still in the process of connecting instead of waiting until 10s have passed to try connecting to a different mailserver - Use status-go version that fixes an issue fetching mailserver messages when more than 999 messages are being verified if they're in the cache
This commit is contained in:
parent
b3d551eeb2
commit
f43a1a65ea
@ -199,6 +199,7 @@ proc handleMailserverEvents(self: ChatController) =
|
||||
)
|
||||
mailserverWorker.start(task)
|
||||
self.status.events.on("mailserverAvailable") do(e:Args):
|
||||
self.view.messageView.setLoadingMessages(true)
|
||||
let task = RequestMessagesTaskArg(
|
||||
`method`: "requestMessages",
|
||||
vptr: cast[ByteAddress](self.view.vptr),
|
||||
|
@ -122,7 +122,7 @@ proc peerSummaryChange*(self: MailserverModel, peers: seq[string]) =
|
||||
|
||||
var mailserverAvailable = false
|
||||
for knownPeer in self.nodes.keys:
|
||||
if not peers.contains(knownPeer) and self.nodes[knownPeer] != MailserverStatus.Disconnected:
|
||||
if not peers.contains(knownPeer) and (self.nodes[knownPeer] == MailserverStatus.Connected or (self.nodes[knownPeer] == MailserverStatus.Connecting and (cpuTime() - self.lastConnectionAttempt) > 8)):
|
||||
info "Peer disconnected", peer=knownPeer
|
||||
self.nodes[knownPeer] = MailserverStatus.Disconnected
|
||||
self.events.emit("peerDisconnected", MailserverArgs(peer: knownPeer))
|
||||
|
2
vendor/status-go
vendored
2
vendor/status-go
vendored
@ -1 +1 @@
|
||||
Subproject commit 26bfeddad483a649ef2f17e9729b9547f33979aa
|
||||
Subproject commit 5c55ab5264ae615ef5a80302bbea5dd6279dc77e
|
Loading…
x
Reference in New Issue
Block a user