Verschieden Settings hinzugefügt (inkomplett)
This commit is contained in:
@@ -129,7 +129,6 @@ export default {
|
||||
if (response.data.status && response.data.status === 'matched') {
|
||||
this.searching = false;
|
||||
if (this.searchInterval) {
|
||||
console.log('clear interval');
|
||||
clearInterval(this.searchInterval);
|
||||
this.searchInterval = null;
|
||||
}
|
||||
@@ -157,7 +156,6 @@ export default {
|
||||
},
|
||||
async sendMessage() {
|
||||
if (this.inputtext.trim() !== '') {
|
||||
console.log('Sending message:', this.inputtext);
|
||||
const response = await axios.post('/api/chat/sendMessage', { from: this.userId, to: this.partner.id, text: this.inputtext });
|
||||
this.messages.push({ type: "self", text: response.data.text });
|
||||
this.inputtext = '';
|
||||
|
||||
Reference in New Issue
Block a user