Skip to content

Commit

Permalink
[core] NOWEB - new newsletter actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Aug 27, 2024
1 parent bad9537 commit dc86405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/engines/noweb/session.noweb.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,19 +1023,19 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
}

public async channelsFollowChannel(id: string): Promise<void> {
return await this.sock.newsletterFollow(id);
return await this.sock.newsletterAction(id, 'follow');
}

public async channelsUnfollowChannel(id: string): Promise<void> {
return await this.sock.newsletterUnfollow(id);
return await this.sock.newsletterAction(id, 'unfollow');
}

public async channelsMuteChannel(id: string): Promise<void> {
return await this.sock.newsletterMute(id);
return await this.sock.newsletterAction(id, 'mute');
}

public async channelsUnmuteChannel(id: string): Promise<void> {
return await this.sock.newsletterUnmute(id);
return await this.sock.newsletterAction(id, 'unmute');
}

/**
Expand Down

0 comments on commit dc86405

Please sign in to comment.