aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-20 23:08:37 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-20 23:08:37 +0200
commit98dd1bcdc9f55e94e81064ac435369f4396038f3 (patch)
treea3525d34c0a3314b7aad31a085718db13d445221 /ui
parent852023c61106dfc1310ffbe224a469aaa01a8fda (diff)
Redraw UI when starting to load more messages
Diffstat (limited to 'ui')
-rw-r--r--ui/view-main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 2c5b691..507333a 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -442,11 +442,14 @@ func (view *MainView) LoadHistory(roomID string) {
return
}
defer atomic.StoreInt32(&msgView.loadingMessages, 0)
+ // Update the "Loading more messages..." text
+ view.parent.Render()
history, err := view.matrix.GetHistory(roomView.Room, 50)
if err != nil {
roomView.AddServiceMessage("Failed to fetch history")
debug.Print("Failed to fetch history for", roomView.Room.ID, err)
+ view.parent.Render()
return
}
for _, evt := range history {