profile page
This commit is contained in:
parent
c96c261082
commit
b44e3bac6f
@ -57,9 +57,9 @@ export default class extends AbstractView {
|
||||
block.id = "block";
|
||||
block.onclick = async () => {
|
||||
if (!this.profile.isBlocked)
|
||||
await client.profiles.block(this.userId);
|
||||
await client.profiles.block(this.user_id);
|
||||
else
|
||||
await client.profiles.deblock(this.userId);
|
||||
await client.profiles.deblock(this.user_id);
|
||||
this.profile = await client.profiles.getProfile(this.username);
|
||||
|
||||
this.blockButton();
|
||||
|
Loading…
Reference in New Issue
Block a user