mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
chat
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { WsChatService } from 'src/app/services/chat/ws-chat.service';
|
||||
import { MessageService } from 'src/app/services/chat/message.service';
|
||||
import { ChatUserService } from 'src/app/services/chat/chat-user.service';
|
||||
import { showDateDuration } from 'src/plugin/showDateDuration';
|
||||
import { ToastsService } from '../toast.service';
|
||||
import { chatHistory, ChatMessage } from 'src/app/models/chatMethod';
|
||||
@@ -24,8 +23,7 @@ export class RoomService {
|
||||
messages: MessageService[] = []
|
||||
storageMessage: any[] = [];
|
||||
lastMessage: MessageService;
|
||||
|
||||
chatUser: ChatUserService[] = []
|
||||
|
||||
customFields: any;
|
||||
id = ''
|
||||
t = ''
|
||||
@@ -205,7 +203,7 @@ export class RoomService {
|
||||
/**
|
||||
* @description sen text message
|
||||
*/
|
||||
send({file = null, attachments = null}) {
|
||||
send({file = null, attachments = null, temporary= {}}) {
|
||||
|
||||
|
||||
let offlineChatMessage = {
|
||||
@@ -213,6 +211,7 @@ export class RoomService {
|
||||
msg: this.message,
|
||||
attachments,
|
||||
file,
|
||||
temporary
|
||||
}
|
||||
|
||||
this.addMessageDB(offlineChatMessage)
|
||||
|
||||
Reference in New Issue
Block a user