Skip to content

Commit

Permalink
fix: 🐛 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
su-chang committed Dec 10, 2024
1 parent 72f560d commit 8e789d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/user-modules/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ class RoomMixin extends MixinBase implements SayableSayer {
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* @returns {(ContactInterface[])}
* @example
* const owner = room.owner()
* const adminList = room.adminList()
*/
async adminList (): Promise<ContactInterface[]> {
log.verbose('Room', 'adminList()')
Expand All @@ -1251,11 +1251,11 @@ class RoomMixin extends MixinBase implements SayableSayer {
return []
}

if (this.payload?.adminIdList.length === 0) {
if (this.payload!.adminIdList.length === 0) {
return []
}

const adminList = await (this.wechaty.Contact as any as typeof ContactImpl).batchLoadContacts(this.payload?.adminIdList)
const adminList = await (this.wechaty.Contact as any as typeof ContactImpl).batchLoadContacts(this.payload!.adminIdList)
return adminList
}

Expand Down

0 comments on commit 8e789d4

Please sign in to comment.