mirror of
https://github.com/usbharu/Hideout.git
synced 2026-07-18 19:41:57 +00:00
feat: unfollow時にフォローリクエストも破棄するように
不整合等の解消を容易にするためのため
This commit is contained in:
+5
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user