ruma-client-api: Re-add r0::push::Action as deprecated, update change log
This commit is contained in:
parent
1d954f3089
commit
418f92153d
@ -13,7 +13,7 @@ Breaking changes:
|
||||
* Change `federated`s type from `Option<bool>` to `bool`
|
||||
* Add `predecessor` field
|
||||
* Update `r0::push::get_pushrules_all` and `r0::push::get_pushrules_global_scope` to use the
|
||||
`Ruleset` type from `ruma_events`
|
||||
`Ruleset` type from `ruma_common::push` (also available as `ruma::push`)
|
||||
* Fix event types in `r0::context::get_context`
|
||||
* Fix event types in `r0::sync::sync_events`
|
||||
|
||||
@ -25,8 +25,9 @@ Improvements:
|
||||
|
||||
Deprecations:
|
||||
|
||||
* `r0::sync::sync_events::SetPresence` has been renamed to `PresenceState`. It is still available
|
||||
under its previous name, but only for one release.
|
||||
* `r0::sync::sync_events::SetPresence` has been moved and renamed. Use `presence::PresenceState`
|
||||
from `ruma` or `ruma-common`.
|
||||
* `r0::push::Action` has been moved. Import it from `ruma` or `ruma-common`.
|
||||
|
||||
# 0.9.0
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use ruma_common::push::{Action, PushCondition};
|
||||
use ruma_common::push::PushCondition;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use strum::{Display, EnumString};
|
||||
|
||||
@ -19,6 +19,9 @@ pub mod set_pushrule;
|
||||
pub mod set_pushrule_actions;
|
||||
pub mod set_pushrule_enabled;
|
||||
|
||||
#[deprecated = "use `push::Action` from `ruma` or `ruma-common` instead"]
|
||||
pub use ruma_common::push::Action;
|
||||
|
||||
/// The kinds of push rules that are available
|
||||
#[derive(
|
||||
Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize, Display, EnumString,
|
||||
|
Loading…
x
Reference in New Issue
Block a user