Set avatar in room create request and sync participants before filling history

This commit is contained in:
Tulir Asokan
2019-05-22 23:27:58 +03:00
parent 14f96bd96f
commit 7b067b4737
2 changed files with 39 additions and 18 deletions

View File

@ -286,7 +286,7 @@ func (user *User) PostLogin() {
user.log.Debugln("Waiting a second for contacts to arrive")
// Hacky way to wait for chats and contacts to arrive automatically
time.Sleep(1 * time.Second)
user.log.Debugln("Waited 3 seconds:", len(user.Conn.Store.Chats), len(user.Conn.Store.Contacts))
user.log.Debugln("Waited a second, have", len(user.Conn.Store.Chats), "chats and", len(user.Conn.Store.Contacts), "contacts")
go user.syncPuppets()
user.syncPortals()