diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index 7f7dd16c..b9651cee 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -157,7 +157,7 @@ export class HomeServerApi { } register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record, inhibitLogin: boolean = true , options: IRequestOptions = {}): IHomeServerRequest { - Object.assign(options, { allowedErrors: [401] }); + options.allowedErrors = [401]; const body: any = { auth, password,