File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
matrix-sdk-base/src/store Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ impl ThreadStatus {
470470
471471 /// Convert a string representation into a [`ThreadStatus`], if it is a
472472 /// valid one, or `None` otherwise.
473- pub fn from_str ( s : & str ) -> Option < Self > {
473+ pub fn from_value ( s : & str ) -> Option < Self > {
474474 match s {
475475 "automatic" => Some ( ThreadStatus :: Subscribed { automatic : true } ) ,
476476 "manual" => Some ( ThreadStatus :: Subscribed { automatic : false } ) ,
Original file line number Diff line number Diff line change @@ -2136,7 +2136,7 @@ impl StateStore for SqliteStateStore {
21362136 . await
21372137 . optional ( ) ?
21382138 . map ( |data| {
2139- ThreadStatus :: from_str ( & data) . ok_or_else ( || Error :: InvalidData {
2139+ ThreadStatus :: from_value ( & data) . ok_or_else ( || Error :: InvalidData {
21402140 details : format ! ( "Invalid thread status: {}" , data) ,
21412141 } )
21422142 } )
You can’t perform that action at this time.
0 commit comments