Skip to content

Commit

Permalink
chore: merge branch bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rzlnhd committed Jun 7, 2022
2 parents 8e711a0 + 3357f2b commit 24be930
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/models/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class Users extends GM_Library {
* @returns
*/
init() {
for (let person of window.WAPI.Contact.models) {
const { models, _models } = window.WAPI.Contact;

for (let person of models || _models) {
if (person.isMe) {
const { userid, id, displayName, pushname } = person;
this.phone = Number(userid || id.user) || "";
Expand Down

0 comments on commit 24be930

Please sign in to comment.