fix(ui): allow header marker edits in read-only dashboard
mattermost--set-header-marker calls replace-match, which raised
"Buffer is read-only" inside toggle, aborting before the collapsed
state was recorded. All marker/overlay mutation now goes through
mattermost--collapse-section with inhibit-read-only bound.
Also deduplicate section rendering into mattermost--insert-section.
fix(mm-client): parse files/info tolerantly and log raw body
Accept array, {file_infos: [...]}, and {order, file_infos: {id: ...}}
shapes; add serde defaults to FileInfo fields. Log body prefix at
debug level to identify the actual Mattermost 10.9.3 response shape.
This commit is contained in:
@@ -96,8 +96,11 @@ pub struct Channel {
|
||||
/// File metadata attached to a post.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct FileInfo {
|
||||
#[serde(default)]
|
||||
pub id: String,
|
||||
#[serde(default)]
|
||||
pub name: String,
|
||||
#[serde(default)]
|
||||
pub size: i64,
|
||||
#[serde(default)]
|
||||
pub mime_type: String,
|
||||
|
||||
Reference in New Issue
Block a user