Fix: Cannot read properties of undefined (reading 'features') // original: (#1407) (#1410)

* Fix: Cannot read properties of undefined (reading 'features') (#1407)

* Fix: Cannot read properties of undefined (reading 'features')

Find MD backend without features

* Fix for tests

* Update Client.js

* Update LegacySessionAuth.js

Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
Rajeh Taher
2022-04-22 00:15:00 +03:00
committed by GitHub
parent 3a2acf71c2
commit 5e2e9dd139
3 changed files with 7 additions and 7 deletions

View File

@@ -733,7 +733,7 @@ class Client extends EventEmitter {
const couldSet = await this.pupPage.evaluate(async displayName => {
if(!window.Store.Conn.canSetMyPushname()) return false;
if(window.Store.Features.features.MD_BACKEND) {
if(window.Store.MDBackend) {
// TODO
return false;
} else {