mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-903] fix: issue subscription button mutation. (#4149)
This commit is contained in:
parent
9b918b727a
commit
2d4547601d
@ -82,7 +82,7 @@ export class IssueSubscriptionStore implements IIssueSubscriptionStore {
|
|||||||
if (!currentUserId) throw new Error("user id not available");
|
if (!currentUserId) throw new Error("user id not available");
|
||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
set(this.subscriptionMap, [issueId, currentUserId], { subscribed: true });
|
set(this.subscriptionMap, [issueId, currentUserId], true);
|
||||||
});
|
});
|
||||||
|
|
||||||
await this.notificationService.subscribeToIssueNotifications(workspaceSlug, projectId, issueId);
|
await this.notificationService.subscribeToIssueNotifications(workspaceSlug, projectId, issueId);
|
||||||
@ -98,7 +98,7 @@ export class IssueSubscriptionStore implements IIssueSubscriptionStore {
|
|||||||
if (!currentUserId) throw new Error("user id not available");
|
if (!currentUserId) throw new Error("user id not available");
|
||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
set(this.subscriptionMap, [issueId, currentUserId], { subscribed: false });
|
set(this.subscriptionMap, [issueId, currentUserId], false);
|
||||||
});
|
});
|
||||||
|
|
||||||
await this.notificationService.unsubscribeFromIssueNotifications(workspaceSlug, projectId, issueId);
|
await this.notificationService.unsubscribeFromIssueNotifications(workspaceSlug, projectId, issueId);
|
||||||
|
Loading…
Reference in New Issue
Block a user