Skip to content

Commit d339dc4

Browse files
committed
Add specific fields to third party lookup response fields
1 parent 0b57432 commit d339dc4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/CallHandler.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,27 @@ enum AudioID {
103103
Busy = 'busyAudio',
104104
}
105105

106+
interface ThirdpartyLookupResponseFields {
107+
/* eslint-disable camelcase */
108+
109+
// im.vector.sip_native
110+
virtual_mxid: string;
111+
is_virtual: boolean;
112+
113+
// im.vector.sip_virtual
114+
native_mxid: string;
115+
is_native: boolean;
116+
117+
// common
118+
lookup_success: boolean;
119+
120+
/* eslint-enable camelcase */
121+
}
122+
106123
interface ThirdpartyLookupResponse {
107124
userid: string,
108125
protocol: string,
109-
fields: {[key: string]: any},
126+
fields: ThirdpartyLookupResponseFields,
110127
}
111128

112129
// Unlike 'CallType' in js-sdk, this one includes screen sharing

0 commit comments

Comments
 (0)