File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
apps/demos/Demos/Chat/Overview Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,15 @@ export class AppService {
9696 }
9797
9898 userChatOnTypingStart ( ) {
99- this . supportChatTypingUsersSubject . next ( [ this . supportAgent ] ) ;
99+ this . supportChatTypingUsersSubject . next ( [ this . currentUser ] ) ;
100100 }
101101
102102 userChatOnTypingEnd ( ) {
103103 this . supportChatTypingUsersSubject . next ( [ ] ) ;
104104 }
105105
106106 supportChatOnTypingStart ( ) {
107- this . userChatTypingUsersSubject . next ( [ this . currentUser ] ) ;
107+ this . userChatTypingUsersSubject . next ( [ this . supportAgent ] ) ;
108108 }
109109
110110 supportChatOnTypingEnd ( ) {
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ export default function App() {
1616
1717 function typingStart ( { user } : TypingStartEvent ) {
1818 if ( user . id === currentUser . id ) {
19- setSupportChatTypingUsers ( [ supportAgent ] ) ;
19+ setSupportChatTypingUsers ( [ currentUser ] ) ;
2020 } else {
21- setUserChatTypingUsers ( [ currentUser ] ) ;
21+ setUserChatTypingUsers ( [ supportAgent ] ) ;
2222 }
2323 }
2424
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ export default function App() {
1111 }
1212 function typingStart ( { user } ) {
1313 if ( user . id === currentUser . id ) {
14- setSupportChatTypingUsers ( [ supportAgent ] ) ;
14+ setSupportChatTypingUsers ( [ currentUser ] ) ;
1515 } else {
16- setUserChatTypingUsers ( [ currentUser ] ) ;
16+ setUserChatTypingUsers ( [ supportAgent ] ) ;
1717 }
1818 }
1919 function typingEnd ( { user } ) {
You can’t perform that action at this time.
0 commit comments