mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-03 03:33:51 +00:00
feat: unfollow時にフォローリクエストも破棄するように
不整合等の解消を容易にするためのため
This commit is contained in:
+5
-1
@@ -46,7 +46,11 @@ class Relationship(
|
|||||||
|
|
||||||
fun unfollow() {
|
fun unfollow() {
|
||||||
following = false
|
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() {
|
fun block() {
|
||||||
|
|||||||
Reference in New Issue
Block a user