File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ type ElectronChannel =
26
26
| "userDownloadAction"
27
27
| "openDesktopCapturerSourcePicker"
28
28
| "userAccessToken"
29
+ | "homeserverUrl"
29
30
| "serverSupportedVersions" ;
30
31
31
32
declare global {
Original file line number Diff line number Diff line change @@ -126,6 +126,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
126
126
window . electron ! . send ( "userAccessToken" , MatrixClientPeg . get ( ) ?. getAccessToken ( ) ) ;
127
127
} ) ;
128
128
129
+ // `homeserverUrl` (IPC) is requested by the main process. A reply is sent over the same channel.
130
+ window . electron . on ( "homeserverUrl" , ( ) => {
131
+ window . electron ! . send ( "homeserverUrl" , MatrixClientPeg . get ( ) ?. getHomeserverUrl ( ) ) ;
132
+ } ) ;
133
+
129
134
// `serverSupportedVersions` is requested by the main process when it needs to know if the
130
135
// server supports a particular version. This is primarily used to detect authenticated media
131
136
// support. A reply is sent over the same channel.
You can’t perform that action at this time.
0 commit comments