Skip to content

Commit 3560f65

Browse files
committed
Update src/components/Room.vue
update room.vue
1 parent a39ddd3 commit 3560f65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Room.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export default {
4343
},
4444
methods: {
4545
newMessage () {
46+
if (this.Thread.isEmpty()) {
47+
return
48+
}
4649
this.Thread.setCreatedAt(this.timestamp);
4750
this.Thread.add().then((success) => {
4851
}).catch(error => {

0 commit comments

Comments
 (0)