Fixed prefixing regular tweets with an @

This commit is contained in:
Christian Muehlhaeuser 2017-08-31 16:20:52 +02:00
parent b134c51fb2
commit b73193a837
No known key found for this signature in database
GPG key ID: BA4CF857DD4117E9

View file

@ -88,8 +88,11 @@ Popup {
onClicked: {
popup.close()
uiBridge.tweetButton(popup.messageid,
"@" + author + " " + messageArea.text)
var msg = messageArea.text
if (popup.messageid > 0) {
msg = "@" + author + " " + msg
}
uiBridge.tweetButton(popup.messageid, msg)
messageArea.clear()
}
}