Merge pull request #14 from jplatte/master
Fix two bytesize bugs (wrong json key, non-optional value that should be optional)
This commit is contained in:
commit
eca6d97690
@ -18,7 +18,7 @@ pub struct PresenceEventContent {
|
||||
pub avatar_url: Option<String>,
|
||||
|
||||
/// Whether or not the user is currently active.
|
||||
pub currently_active: bool,
|
||||
pub currently_active: Option<bool>,
|
||||
|
||||
/// The current display name for this user.
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
|
@ -22,6 +22,7 @@ pub type ReceiptEventContent = HashMap<EventId, Receipts>;
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct Receipts {
|
||||
/// A collection of users who have sent *m.read* receipts for this event.
|
||||
#[serde(rename="m.read")]
|
||||
pub m_read: UserReceipts,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user