mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
fix: use the correct server member ID in store
This commit is contained in:
@@ -32,7 +32,7 @@ export class ServerMemberCollection extends ClassCollection<
|
||||
* @returns Message
|
||||
*/
|
||||
async fetch(serverId: string, userId: string): Promise<ServerMember> {
|
||||
const member = this.get(userId);
|
||||
const member = this.get(serverId + userId);
|
||||
if (member) return member;
|
||||
|
||||
const data = await this.client.api.get(
|
||||
|
||||
Reference in New Issue
Block a user