UnreadNotificationsCount: Make fields optional
This commit is contained in:
		
							parent
							
								
									46fa6d21a2
								
							
						
					
					
						commit
						fcd2a50f4f
					
				| @ -305,9 +305,11 @@ pub mod sync_events { | ||||
|     #[derive(Clone, Debug, Deserialize, Serialize)] | ||||
|     pub struct UnreadNotificationsCount { | ||||
|         /// The number of unread notifications for this room with the highlight flag set.
 | ||||
|         pub highlight_count: u64, | ||||
|         #[serde(skip_serializing_if = "Option::is_none")] | ||||
|         pub highlight_count: Option<u64>, | ||||
|         /// The total number of unread notifications for this room.
 | ||||
|         pub notification_count: u64, | ||||
|         #[serde(skip_serializing_if = "Option::is_none")] | ||||
|         pub notification_count: Option<u64>, | ||||
|     } | ||||
| 
 | ||||
|     /// Events in the room.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user