mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
remove key
This commit is contained in:
@@ -236,11 +236,8 @@ export class WsChatService {
|
|||||||
|
|
||||||
receiveLiveMessageFromRoom(roomId, funx: Function) {
|
receiveLiveMessageFromRoom(roomId, funx: Function) {
|
||||||
|
|
||||||
const key = roomId + funx;
|
|
||||||
|
|
||||||
this.ws.registerCallback({
|
this.ws.registerCallback({
|
||||||
type:'Onmessage',
|
type:'Onmessage',
|
||||||
key: key,
|
|
||||||
funx:(message)=>{
|
funx:(message)=>{
|
||||||
if(message.msg =='changed' && message.collection == 'stream-room-messages') {
|
if(message.msg =='changed' && message.collection == 'stream-room-messages') {
|
||||||
if(message.fields.args[0].rid == roomId) {
|
if(message.fields.args[0].rid == roomId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user