We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7170a7 commit 9f64925Copy full SHA for 9f64925
api/src/extensions/channels/chatui/wrapper.ts
@@ -25,4 +25,16 @@ export default class ChaUiWebEventWrapper<
25
constructor(handler: T, event: Web.Event, channelData: any) {
26
super(handler, event, channelData);
27
}
28
+
29
+ /**
30
+ * Retrieves the thread id to which the message belongs to
31
+ *
32
+ * @returns Thread id
33
+ */
34
+ getThreadId(): string {
35
+ if ('thread' in this._adapter.raw) {
36
+ return this._adapter.raw.thread;
37
+ }
38
+ return undefined;
39
40
0 commit comments