|
|
@@ -93,6 +93,21 @@ export class ChatPageComponent implements OnInit { |
|
|
|
}] |
|
|
|
}]; |
|
|
|
|
|
|
|
broadCastList = [{ |
|
|
|
user: { |
|
|
|
id: 0, |
|
|
|
name: '10th Standard Channel', |
|
|
|
imgUrl: 'https://lh3.googleusercontent.com/9vppS4or0GIIqIdxU7vrMFbHMOOhO3FgFWPN1WYUH4xXd9GwFvZzeCGYrhezckELzAM' |
|
|
|
}, |
|
|
|
conversation: [{ |
|
|
|
message: 'Hi Students, Hope your all are doing well. You will have special classes tomorrow by DK sir @4.30PM. \n Followed by Quiz. ATB!', |
|
|
|
user: 0 |
|
|
|
}, { |
|
|
|
message: 'Hi Students, I have uploaded a question in the forum. Please take a look!', |
|
|
|
user: 0 |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
constructor( |
|
|
|
private location: Location |
|
|
|
) { } |
|
|
@@ -104,10 +119,14 @@ export class ChatPageComponent implements OnInit { |
|
|
|
this.location.back(); |
|
|
|
} |
|
|
|
|
|
|
|
openChat(index: number) { |
|
|
|
openPersonalChat(index: number) { |
|
|
|
this.selectedChat = this.chatList[index]; |
|
|
|
} |
|
|
|
|
|
|
|
openBroadcastChat(index: number) { |
|
|
|
this.selectedChat = this.broadCastList[index]; |
|
|
|
} |
|
|
|
|
|
|
|
getChatEvent(e: boolean) { |
|
|
|
if (e) { |
|
|
|
this.selectedChat = null; |
|
|
|