mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -65,7 +65,7 @@ export class RoomService {
|
||||
|
||||
receiveMessage() {
|
||||
|
||||
this.WsChatService.upateRoomEvents(
|
||||
this.WsChatService.updateRoomEventss(
|
||||
this.id,
|
||||
"stream-room-messages",
|
||||
(ChatMessage) => {
|
||||
@@ -127,7 +127,7 @@ export class RoomService {
|
||||
|
||||
async receiveMessageDelete() {
|
||||
|
||||
this.WsChatService.upateRoomEvents(
|
||||
this.WsChatService.updateRoomEventss(
|
||||
this.id,
|
||||
"stream-notify-room",
|
||||
async (ChatMessage) => {
|
||||
|
||||
@@ -45,7 +45,19 @@ export class WsChatMethodsService {
|
||||
|
||||
const rooms = await this.WsChatService.getRooms();
|
||||
|
||||
// console.log("ROOMS" + JSON.stringify(rooms))
|
||||
|
||||
this.WsChatService.registerCallback({
|
||||
type:'Onmessage',
|
||||
funx:(message)=>{
|
||||
|
||||
if(message.msg =='changed' && message.collection == "stream-room-messages") {
|
||||
if(message.fields.args[0].rid) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
rooms.result.update.forEach((roomData: room) => {
|
||||
this.prepareRoom(roomData);
|
||||
|
||||
@@ -425,7 +425,7 @@ export class WsChatService {
|
||||
|
||||
}
|
||||
|
||||
upateRoomEvents(roomId, collection:string, funx: Function, ) {
|
||||
updateRoomEventss(roomId, collection:string, funx: Function, ) {
|
||||
|
||||
this.ws.registerCallback({
|
||||
type:'Onmessage',
|
||||
|
||||
Reference in New Issue
Block a user