diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-20 23:08:37 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-20 23:08:37 +0200 |
commit | 98dd1bcdc9f55e94e81064ac435369f4396038f3 (patch) | |
tree | a3525d34c0a3314b7aad31a085718db13d445221 /ui | |
parent | 852023c61106dfc1310ffbe224a469aaa01a8fda (diff) |
Redraw UI when starting to load more messages
Diffstat (limited to 'ui')
-rw-r--r-- | ui/view-main.go | 3 |
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 { |