@subiz/widget-v4 4.1.110 → 4.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,7 @@ class Typing extends _common.Com {
|
|
|
21
21
|
if (_index.default.convoOfEv(ev) !== this.props.cid) return;
|
|
22
22
|
let user = this.props.store.matchUser();
|
|
23
23
|
if (_index.default.get(ev, 'by.id') === user.id) return;
|
|
24
|
+
if (_index.default.get(ev, 'by.type') === 'user') return;
|
|
24
25
|
let oldby = _index.default.get(this.state.ev, 'by.id');
|
|
25
26
|
if (oldby && _index.default.get(ev, 'by.id') !== oldby) return;
|
|
26
27
|
if (_index.default.get(ev, 'type') === 'message_sent') {
|
package/package.json
CHANGED
package/src/chatbox/Typing.js
CHANGED
|
@@ -17,6 +17,8 @@ export default class Typing extends Com {
|
|
|
17
17
|
if (sb.convoOfEv(ev) !== this.props.cid) return
|
|
18
18
|
let user = this.props.store.matchUser()
|
|
19
19
|
if (sb.get(ev, 'by.id') === user.id) return
|
|
20
|
+
// fixwidget in dashboard show typing of user
|
|
21
|
+
if (sb.get(ev, 'by.type') === 'user') return
|
|
20
22
|
|
|
21
23
|
let oldby = sb.get(this.state.ev, 'by.id')
|
|
22
24
|
if (oldby && sb.get(ev, 'by.id') !== oldby) return
|