Initialize AccountBridge with empty values

This commit is contained in:
Christian Muehlhaeuser 2019-05-15 05:35:36 +02:00
parent b901dd7b69
commit 714816ea8f
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -255,10 +255,15 @@ func setupMastodon(config Account) {
tc = mastodon.NewAccount(config.Instance, config.Token, config.ClientID, config.ClientSecret)
postModel := NewMessageModel(nil)
accountBridge.SetUsername("Connecting...")
accountBridge.SetUsername("Not connected...")
accountBridge.SetNotifications(notificationModel)
accountBridge.SetConversation(conversationModel)
accountBridge.SetAccountMessages(accountMessagesModel)
accountBridge.SetAvatar("qrc:/qml/images/telephant_logo.png")
accountBridge.SetPosts(0)
accountBridge.SetFollowCount(0)
accountBridge.SetFollowerCount(0)
accountBridge.SetPostSizeLimit(0)
// Notifications model must the first model to be added
// It will always be displayed right-most