MCPcopy Create free account
hub / github.com/async-labs/async / deleteDiscussionStoreMethod

Method deleteDiscussionStoreMethod

app/lib/store/User.ts:705–724  ·  view source on GitHub ↗
({
    discussionId,
    teamId,
    whichList,
  }: {
    discussionId: string;
    teamId: string;
    whichList: string;
  })

Source from the content-addressed store, hash-verified

703 }
704
705 public async deleteDiscussionStoreMethod({
706 discussionId,
707 teamId,
708 whichList,
709 }: {
710 discussionId: string;
711 teamId: string;
712 whichList: string;
713 }) {
714 await deleteDiscussionApiMethod({
715 discussionId,
716 socketId: (this.store.socket && this.store.socket.id) || null,
717 teamId,
718 whichList,
719 });
720
721 runInAction(() => {
722 this.removeDiscussionFromLocalCacheStoreMethod(discussionId, whichList);
723 });
724 }
725
726 public async archiveDiscussionStoreMethod({
727 discussionId,

Callers 1

DiscussionDetailClass · 0.80

Tested by

no test coverage detected