Skip to content

Commit

Permalink
feat: add threadId to interaction context (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Jun 23, 2023
1 parent 4179085 commit a93e4bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/definition/uikit/UIKitIncomingInteractionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface IUIKitBaseIncomingInteraction {
actionId?: string;
room?: IRoom;
triggerId?: string;
threadId?: string;
}

export interface IUIKitBlockIncomingInteraction extends IUIKitBaseIncomingInteraction {
Expand Down
4 changes: 2 additions & 2 deletions src/definition/uikit/UIKitInteractionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export abstract class UIKitInteractionContext {
private baseContext: IUIKitBaseIncomingInteraction;
private responder: UIKitInteractionResponder;
constructor(baseContext: IUIKitBaseIncomingInteraction) {
const { appId, actionId, room, user, triggerId } = baseContext;
const { appId, actionId, room, user, triggerId, threadId } = baseContext;

this.baseContext = { appId, actionId, room, user, triggerId };
this.baseContext = { appId, actionId, room, user, triggerId, threadId };

this.responder = new UIKitInteractionResponder(this.baseContext);
}
Expand Down

0 comments on commit a93e4bf

Please sign in to comment.