File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
website/versioned_docs/version-1.1/api/ref Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ interface DesktopAgent {
26
26
getOrCreateChannel(channelId : string ): Promise <Channel >;
27
27
getSystemChannels(): Promise <Array <Channel >>;
28
28
joinChannel(channelId : string ) : Promise <void >;
29
- getCurrentChannel() : Promise <void >;
29
+ getCurrentChannel() : Promise <Channel >;
30
30
leaveCurrentChannel() : Promise <void >;
31
31
}
32
32
```
Original file line number Diff line number Diff line change @@ -147,4 +147,11 @@ interface DesktopAgent {
147
147
* `Error` with a string from the `ChannelError` enumeration.
148
148
*/
149
149
getOrCreateChannel ( channelId : string ) : Promise < Channel > ;
150
+
151
+ /**
152
+ * Returns the `Channel` object for the current channel membership.
153
+ *
154
+ * Returns `null` if the app is not joined to a channel.
155
+ */
156
+ getCurrentChannel ( ) : Promise < Channel > ;
150
157
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ interface DesktopAgent {
27
27
getOrCreateChannel(channelId : string ): Promise <Channel >;
28
28
getSystemChannels(): Promise <Array <Channel >>;
29
29
joinChannel(channelId : string ) : Promise <void >;
30
- getCurrentChannel() : Promise <void >;
30
+ getCurrentChannel() : Promise <Channel >;
31
31
leaveCurrentChannel() : Promise <void >;
32
32
}
33
33
```
You can’t perform that action at this time.
0 commit comments