From 0c3e69a7e4e856f3c342a0efd5dfbe3b97a0fd16 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 7 Sep 2024 23:23:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20unfollow=E6=99=82=E3=81=AB=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AD=E3=83=BC=E3=83=AA=E3=82=AF=E3=82=A8=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=82=E7=A0=B4=E6=A3=84=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不整合等の解消を容易にするためのため --- .../hideout/core/domain/model/relationship/Relationship.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/Relationship.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/Relationship.kt index 93babff4..9f7e4f6f 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/Relationship.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/Relationship.kt @@ -46,7 +46,11 @@ class Relationship( fun unfollow() { following = false - addDomainEvent(RelationshipEventFactory(this).createEvent(RelationshipEvent.UNFOLLOW)) + followRequesting = false + val relationshipEventFactory = RelationshipEventFactory(this) + addDomainEvent(relationshipEventFactory.createEvent(RelationshipEvent.UNFOLLOW)) + addDomainEvent(relationshipEventFactory.createEvent(RelationshipEvent.UNFOLLOW_REQUEST)) + } fun block() {