Remove "with_relations" stable field since the msc is in an unstable state
This commit is contained in:
parent
dd9fba0626
commit
0870cec118
@ -56,7 +56,6 @@ internal class DefaultRedactEventTask @Inject constructor(
|
|||||||
body = EventRedactBody(
|
body = EventRedactBody(
|
||||||
reason = params.reason,
|
reason = params.reason,
|
||||||
withRelations = withRelations,
|
withRelations = withRelations,
|
||||||
withRelationsUnstable = withRelations,
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -802,7 +802,6 @@ internal class LocalEchoEventFactory @Inject constructor(
|
|||||||
EventRedactBody(
|
EventRedactBody(
|
||||||
reason = reason,
|
reason = reason,
|
||||||
withRelations = withRelations,
|
withRelations = withRelations,
|
||||||
withRelationsUnstable = withRelations,
|
|
||||||
).toContent().plus(additionalContent.orEmpty())
|
).toContent().plus(additionalContent.orEmpty())
|
||||||
} else {
|
} else {
|
||||||
additionalContent
|
additionalContent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2021 The Matrix.org Foundation C.I.C.
|
* Copyright (c) 2023 New Vector Ltd
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -24,9 +24,6 @@ internal data class EventRedactBody(
|
|||||||
@Json(name = "reason")
|
@Json(name = "reason")
|
||||||
val reason: String? = null,
|
val reason: String? = null,
|
||||||
|
|
||||||
@Json(name = "with_relations")
|
|
||||||
val withRelations: List<String>? = null,
|
|
||||||
|
|
||||||
@Json(name = "org.matrix.msc3912.with_relations")
|
@Json(name = "org.matrix.msc3912.with_relations")
|
||||||
val withRelationsUnstable: List<String>? = null,
|
val withRelations: List<String>? = null,
|
||||||
)
|
)
|
||||||
|
@ -118,7 +118,7 @@ internal class QueueMemento @Inject constructor(
|
|||||||
eventId = it.redacts,
|
eventId = it.redacts,
|
||||||
roomId = it.roomId,
|
roomId = it.roomId,
|
||||||
reason = body?.reason,
|
reason = body?.reason,
|
||||||
withRelations = body?.withRelations ?: body?.withRelationsUnstable
|
withRelations = body?.withRelations,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user