feat: unfollow時にフォローリクエストも破棄するように

不整合等の解消を容易にするためのため
This commit is contained in:
usbharu 2024-09-07 23:23:57 +09:00
parent b3a5749b54
commit 0c3e69a7e4
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 5 additions and 1 deletions

View File

@ -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() {