mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 18:00:19 +03:00
Comment room creation insanity
This commit is contained in:
parent
10d056eb41
commit
ee96201e33
1 changed files with 5 additions and 0 deletions
|
@ -532,6 +532,11 @@ export default class CallHandler {
|
||||||
if (newNativeAssertedIdentity) {
|
if (newNativeAssertedIdentity) {
|
||||||
this.assertedIdentityNativeUsers[call.callId] = newNativeAssertedIdentity;
|
this.assertedIdentityNativeUsers[call.callId] = newNativeAssertedIdentity;
|
||||||
|
|
||||||
|
// If we don't already have a room with this user, make one. This will be slightly odd
|
||||||
|
// if they called us because we'll be inviting them, but there's not much we can do about
|
||||||
|
// this if we want the actual, native room to exist (which we do). This is why it's
|
||||||
|
// important to only obey asserted identity in trusted environments, since anyone you're
|
||||||
|
// on a call with can cause you to send a room invite to someone.
|
||||||
await ensureDMExists(MatrixClientPeg.get(), newNativeAssertedIdentity);
|
await ensureDMExists(MatrixClientPeg.get(), newNativeAssertedIdentity);
|
||||||
|
|
||||||
const newMappedRoomId = CallHandler.sharedInstance().roomIdForCall(call);
|
const newMappedRoomId = CallHandler.sharedInstance().roomIdForCall(call);
|
||||||
|
|
Loading…
Reference in a new issue