Skip to content

Commit 6d18d73

Browse files
committed
add sticky_key to makeMyMembership
Signed-off-by: Timo K <[email protected]>
1 parent 61b05a0 commit 6d18d73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/matrixrtc/CallMembership.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type { RTCCallIntent, Transport } from "./types.ts";
2222
import { type IContent, type MatrixEvent } from "../models/event.ts";
2323
import { type RelationType } from "../@types/event.ts";
2424
import { logger } from "../logger.ts";
25-
import { UNSTABLE_STICKY_KEY, type StickyKeyContent } from "src/models/room-sticky-events.ts";
25+
import { UNSTABLE_STICKY_KEY, type StickyKeyContent } from "../models/room-sticky-events.ts";
2626

2727
/**
2828
* The default duration in milliseconds that a membership is considered valid for.

src/matrixrtc/MembershipManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
type IMembershipManager,
4343
type MembershipManagerEventHandlerMap,
4444
} from "./IMembershipManager.ts";
45+
import { UNSTABLE_STICKY_KEY } from "src/models/room-sticky-events.ts";
4546

4647
/* MembershipActionTypes:
4748
On Join: ───────────────┐ ┌───────────────(1)───────────┐
@@ -773,6 +774,7 @@ export class MembershipManager
773774
member: { device_id: this.deviceId, user_id: this.client.getUserId()!, id: this.memberId },
774775
versions: [],
775776
...relationObject,
777+
[UNSTABLE_STICKY_KEY.name]: this.memberId,
776778
};
777779
} else {
778780
const focusObjects =

0 commit comments

Comments
 (0)