Verschieden Settings hinzugefügt (inkomplett)

This commit is contained in:
Torsten Schulz
2024-07-22 20:55:33 +02:00
parent 89842ff6c5
commit 4c12303edc
23 changed files with 269 additions and 208 deletions

View File

@@ -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 = '';