Skip to content

Commit

Permalink
perbaikan pesan dobel saat kirim pesan
Browse files Browse the repository at this point in the history
  • Loading branch information
febrihidayan committed Aug 20, 2020
1 parent a77dc47 commit 839b1f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ new Vue({

if (this.form.to_id == user_id) {

this.messages.push(data)
this.messages.push({
avatar: data.avatar,
content: data.content,
created_at: data.created_at,
from_id: data.from_id,
})

axios.get('/message/user-message/' + user_id + '/read')

Expand Down

0 comments on commit 839b1f2

Please sign in to comment.