Skip to content

Commit

Permalink
Merge pull request #30 from matrix-org/jryans/widget-room-id
Browse files Browse the repository at this point in the history
Rename room ID to indicate new meaning
  • Loading branch information
turt2live authored Feb 2, 2021
2 parents 6261f65 + 4246e18 commit 2aedc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templating/url-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { IWidget } from "..";

export interface ITemplateParams {
currentRoomId?: string;
widgetRoomId?: string;
currentUserId: string;
userDisplayName?: string;
userHttpAvatarUrl?: string;
Expand All @@ -26,7 +26,7 @@ export interface ITemplateParams {
export function runTemplate(url: string, widget: IWidget, params: ITemplateParams): string {
// Always apply the supplied params over top of data to ensure the data can't lie about them.
const variables = Object.assign({}, widget.data, {
matrix_room_id: params.currentRoomId || "",
matrix_room_id: params.widgetRoomId || "",
matrix_user_id: params.currentUserId,
matrix_display_name: params.userDisplayName || params.currentUserId,
matrix_avatar_url: params.userHttpAvatarUrl || "",
Expand Down

0 comments on commit 2aedc1f

Please sign in to comment.