@@ -37,7 +37,7 @@ use ruma::{
3737 } ,
3838 mxc_uri, owned_event_id, owned_mxc_uri,
3939 presence:: PresenceState ,
40- profile:: UserProfile ,
40+ profile:: UserProfileUpdate ,
4141 push:: Ruleset ,
4242 room_id,
4343 room_version_rules:: AuthorizationRules ,
@@ -2159,7 +2159,7 @@ impl StateStoreIntegrationTests for DynStateStore {
21592159 let mut fields = BTreeMap :: new ( ) ;
21602160 fields. insert ( "displayname" . to_owned ( ) , json ! ( "Alice" ) ) ;
21612161 fields. insert ( "avatar_url" . to_owned ( ) , json ! ( null) ) ;
2162- let update = UserProfile :: from_iter ( fields) ;
2162+ let update = UserProfileUpdate :: from_iter ( fields) ;
21632163
21642164 let mut changes = StateChanges :: default ( ) ;
21652165 changes. global_profiles . insert ( user_id. to_owned ( ) , update) ;
@@ -2173,7 +2173,7 @@ impl StateStoreIntegrationTests for DynStateStore {
21732173 let mut fields = BTreeMap :: new ( ) ;
21742174 fields. insert ( "displayname" . to_owned ( ) , json ! ( null) ) ;
21752175 fields. insert ( "avatar_url" . to_owned ( ) , json ! ( "mxc://example.com/avatar" ) ) ;
2176- let update2 = UserProfile :: from_iter ( fields) ;
2176+ let update2 = UserProfileUpdate :: from_iter ( fields) ;
21772177
21782178 let mut changes = StateChanges :: default ( ) ;
21792179 changes. global_profiles . insert ( user_id. to_owned ( ) , update2) ;
@@ -2195,11 +2195,11 @@ impl StateStoreIntegrationTests for DynStateStore {
21952195 let mut changes = StateChanges :: default ( ) ;
21962196 changes. global_profiles . insert (
21972197 alice. to_owned ( ) ,
2198- UserProfile :: from_iter ( [ ( "displayname" . to_owned ( ) , json ! ( "Alice" ) ) ] ) ,
2198+ UserProfileUpdate :: from_iter ( [ ( "displayname" . to_owned ( ) , json ! ( "Alice" ) ) ] ) ,
21992199 ) ;
22002200 changes. global_profiles . insert (
22012201 bob. to_owned ( ) ,
2202- UserProfile :: from_iter ( [ ( "displayname" . to_owned ( ) , json ! ( "Bob" ) ) ] ) ,
2202+ UserProfileUpdate :: from_iter ( [ ( "displayname" . to_owned ( ) , json ! ( "Bob" ) ) ] ) ,
22032203 ) ;
22042204 self . save_changes ( & changes) . await ?;
22052205
0 commit comments