Add progress bar for first sync

This commit is contained in:
Tulir Asokan
2020-04-19 18:06:45 +03:00
parent 6a907354e2
commit a66b02ae8b
8 changed files with 145 additions and 49 deletions

View File

@ -40,6 +40,14 @@ type GomuksUI interface {
Finish()
}
type SyncingModal interface {
SetIndeterminate()
SetMessage(string)
SetSteps(int)
Step()
Close()
}
type MainView interface {
GetRoom(roomID id.RoomID) RoomView
AddRoom(room *rooms.Room)
@ -50,6 +58,7 @@ type MainView interface {
UpdateTags(room *rooms.Room)
SetTyping(roomID id.RoomID, users []id.UserID)
OpenSyncingModal() SyncingModal
NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould)
}