Add function to show when message received
This commit is contained in:
parent
b0bd4c5f40
commit
64d00bda56
2 changed files with 11 additions and 2 deletions
|
@ -597,6 +597,11 @@ export class MediaManager {
|
|||
|
||||
public addNewMessage(name: string, message: string, isMe: boolean = false){
|
||||
this.discussionManager.addMessage(name, message, isMe);
|
||||
|
||||
//when there are new message, show discussion
|
||||
if(!this.discussionManager.activatedDiscussion) {
|
||||
this.discussionManager.showDiscussionPart();
|
||||
}
|
||||
}
|
||||
|
||||
public addSendMessageCallback(userId: string|number, callback: SendMessageCallback){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue