Skip to content

Commit

Permalink
base: Remove the session field from StateChanges
Browse files Browse the repository at this point in the history
It is never set nor used.

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored and bnjbvr committed Jun 15, 2023
1 parent 78135fc commit 16a63d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions crates/matrix-sdk-base/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ impl Deref for Store {
pub struct StateChanges {
/// The sync token that relates to this update.
pub sync_token: Option<String>,
/// A user session, containing an access token and information about the
/// associated user account.
pub session: Option<Session>,
/// A mapping of event type string to `AnyBasicEvent`.
pub account_data: BTreeMap<GlobalAccountDataEventType, Raw<AnyGlobalAccountDataEvent>>,
/// A mapping of `UserId` to `PresenceEvent`.
Expand Down
1 change: 0 additions & 1 deletion crates/matrix-sdk-sqlite/src/state_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,6 @@ impl StateStore for SqliteStateStore {
.with_transaction(move |txn| {
let StateChanges {
sync_token,
session: _,
account_data,
presence,
profiles,
Expand Down

0 comments on commit 16a63d3

Please sign in to comment.