File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ export interface SyncLinkPfRes {
12
12
/**
13
13
* Channel id
14
14
*/
15
- c : Long ;
15
+ c ? : Long ;
16
16
17
17
/**
18
18
* Link id
19
19
*/
20
- li : Long ;
20
+ li ? : Long ;
21
21
22
22
/**
23
23
* Updated open link user
Original file line number Diff line number Diff line change @@ -90,13 +90,17 @@ export class TalkOpenChannelHandler<T extends OpenChannel> implements Managed<Ta
90
90
pfData : DefaultRes & SyncLinkPfRes ,
91
91
parentCtx : EventContext < TalkOpenChannelEvents < T > >
92
92
) {
93
- if ( ! this . _channel . channelId . eq ( pfData . c ) && ! this . _channel . linkId . eq ( pfData . li ) ) return ;
93
+ if (
94
+ pfData . c && ! this . _channel . channelId . eq ( pfData . c ) ||
95
+ pfData . li && ! this . _channel . linkId . eq ( pfData . li )
96
+ ) return ;
94
97
95
- const updated = structToOpenLinkChannelUserInfo ( pfData . olu ) ;
96
- const last = this . _store . getUserInfo ( updated ) ;
98
+ const last = this . _store . getUserInfo ( pfData . olu ) ;
97
99
if ( ! last ) return ;
98
100
99
- this . _store . updateUserInfo ( updated , updated ) ;
101
+ const updated = structToOpenLinkChannelUserInfo ( pfData . olu ) ;
102
+
103
+ this . _store . updateUserInfo ( last , updated ) ;
100
104
101
105
this . _callEvent (
102
106
parentCtx ,
You can’t perform that action at this time.
0 commit comments