Skip to content

Commit 3ecfaaf

Browse files
r-farkhutdinovRuslan Farkhutdinov
andauthored
Chat: Should show correct typing user in React & Angular (T1277962) (DevExpress#29224)
Co-authored-by: Ruslan Farkhutdinov <[email protected]>
1 parent c51dd72 commit 3ecfaaf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/demos/Demos/Chat/Overview/Angular/app/app.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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() {

apps/demos/Demos/Chat/Overview/React/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

apps/demos/Demos/Chat/Overview/ReactJs/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }) {

0 commit comments

Comments
 (0)