Fix scn phone chat message load bug

This commit is contained in:
2025-09-26 09:51:52 +08:00
parent 2692612254
commit e94a14cc94
3 changed files with 82 additions and 9 deletions

View File

@@ -122,6 +122,14 @@ impl OutputScriptType {
pub fn is_custom(&self) -> bool {
matches!(self, OutputScriptType::Custom)
}
/// Returns true if the script type is M3t/M3ta/M3tTxt.
pub fn is_m3t(&self) -> bool {
matches!(
self,
OutputScriptType::M3t | OutputScriptType::M3ta | OutputScriptType::M3tTxt
)
}
}
impl AsRef<str> for OutputScriptType {