mirror of
https://github.com/muesli/telephant
synced 2025-02-16 19:48:24 +00:00
Handle empty message IDs correctly
This commit is contained in:
parent
db21372a44
commit
b6bfb21039
1 changed files with 3 additions and 1 deletions
|
@ -87,10 +87,12 @@ Popup {
|
|||
onClicked: {
|
||||
popup.close()
|
||||
var msg = messageArea.text
|
||||
var msgid = "";
|
||||
if (message != null) {
|
||||
msgid = message.messageid
|
||||
msg = "@" + message.author + " " + msg
|
||||
}
|
||||
uiBridge.postButton(message.messageid, msg)
|
||||
uiBridge.postButton(msgid, msg)
|
||||
messageArea.clear()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue