You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Also check for MSC3757 for session state keys (#4334)
Do not prefix the non-legacy session membership state keys with an underscore for rooms using MSC3757 (in addtion to MSC3779).
This commit is contained in:
committed by
GitHub
parent
e10c362ef0
commit
fbdd78b428
@@ -933,7 +933,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
|
|||||||
|
|
||||||
private makeMembershipStateKey(localUserId: string, localDeviceId: string): string {
|
private makeMembershipStateKey(localUserId: string, localDeviceId: string): string {
|
||||||
const stateKey = `${localUserId}_${localDeviceId}`;
|
const stateKey = `${localUserId}_${localDeviceId}`;
|
||||||
if (/^org\.matrix\.msc3779\b/.exec(this.room.getVersion())) {
|
if (/^org\.matrix\.msc(3757|3779)\b/.exec(this.room.getVersion())) {
|
||||||
return stateKey;
|
return stateKey;
|
||||||
} else {
|
} else {
|
||||||
return `_${stateKey}`;
|
return `_${stateKey}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user