You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
onSystemMessageListener Event not getting fired in Angular #433
In my angular application j have used this quickblox API and currently facing issues with QB.chat.onSystemMessageListener when creating dialogue.
When I Manually on the button and click Try to call this event its listener gets called:
try {
QB.chat.sendSystemMessage(userIds, systemMessage);
// or message.id = QB.chat.sendSystemMessage(opponentId, message) if message ID is needed
} catch (e) {
console.log(e);
if (e.name === "ChatNotConnectedError") {
// not connected to chat
}
}
But, when i try to call this event when creating dialogue it does not get called:
public createDialog(selected_occupant_id) {
const self = this;
const params = {
type: 3,
occupants_ids: [selected_occupant_id]
};
Activity