@@ -15,6 +15,7 @@ import Conversation from "../../../wfc/model/conversation";
15
15
16
16
import CallEndReason from "./callEndReason" ;
17
17
import CallByeMessageContent from "../messages/callByeMessageContent" ;
18
+ import WfcAVEngineKit from "./avenginekit" ;
18
19
19
20
// main window renderer process -> voip window renderer process
20
21
// voip window renderer process -> main process -> main window renderer process
@@ -53,6 +54,7 @@ export class AvEngineKitProxy {
53
54
* @param wfc
54
55
*/
55
56
setup ( wfc ) {
57
+ console . log ( 'avengineProxy, setup' ) ;
56
58
if ( this . wfc === wfc ) {
57
59
console . log ( 're-setup, just ignore' ) ;
58
60
return ;
@@ -164,6 +166,7 @@ export class AvEngineKitProxy {
164
166
165
167
// 收到消息时,timestamp已经过修正,后面使用时,不用考虑和服务器的时间差
166
168
onReceiveMessage = ( msg ) => {
169
+ console . log ( 'avengineProxy, on receive message' , msg ) ;
167
170
if ( ! Config . ENABLE_MULTI_VOIP_CALL && msg . conversation . type === ConversationType . Group ) {
168
171
console . log ( 'not enable multi call ' ) ;
169
172
return ;
@@ -180,6 +183,7 @@ export class AvEngineKitProxy {
180
183
let delta = wfc . getServerDeltaTime ( ) ;
181
184
if ( now - ( numberValue ( msg . timestamp ) - delta ) >= 90 * 1000 ) {
182
185
// 消息已失效,不做处理
186
+ console . log ( 'avengineProxy, message outdated, just ignore' , msg ) ;
183
187
return ;
184
188
}
185
189
let content = msg . messageContent ;
0 commit comments