Skip to content

Commit

Permalink
fix: πŸ› delete with roomId
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed May 10, 2024
1 parent bd80ec3 commit ec71816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mixins/cache-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ const cacheMixin = <MixinBase extends typeof PuppetSkeleton & LoginMixin>(mixinB
[DirtyType.RoomMember]: (id: string) => {
const frags = id.split(STRING_SPLITTER)
if (frags.length > 1) {
const roomMemberId = frags[1]
this.cache.roomMember?.delete(roomMemberId!)
const roomId = frags[0]
this.cache.roomMember?.delete(roomId!)
} else {
this.cache.roomMember?.delete(id)
}
Expand Down

0 comments on commit ec71816

Please sign in to comment.