Skip to content

Commit

Permalink
fix: reply from UI (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldinokemal authored Apr 8, 2024
1 parent b933183 commit b620001
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/views/components/SendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
type: 'user',
phone: '',
text: '',
reply_id: '',
reply_message_id: '',
loading: false,
}
},
Expand Down Expand Up @@ -38,8 +38,8 @@ export default {
phone: this.phone_id,
message: this.text,
}
if (this.reply_id !== '') {
payload.reply_id = this.reply_id;
if (this.reply_message_id !== '') {
payload.reply_message_id = this.reply_message_id;
}

let response = await window.http.post(`/send/message`, payload)
Expand All @@ -58,7 +58,7 @@ export default {
this.phone = '';
this.text = '';
this.type = 'user';
this.reply_id = '';
this.reply_message_id = '';
},
},
template: `
Expand Down Expand Up @@ -95,9 +95,9 @@ export default {
</div>
<div class="field">
<label>Reply Message ID</label>
<input v-model="reply_id" type="text"
<input v-model="reply_message_id" type="text"
placeholder="Optional: 57D29F74B7FC62F57D8AC2C840279B5B/3EB0288F008D32FCD0A424"
aria-label="reply_id">
aria-label="reply_message_id">
</div>
<div class="field">
<label>Message</label>
Expand Down

0 comments on commit b620001

Please sign in to comment.