mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-13 07:48:30 +00:00
- the `post_add()` API on the 'lib' side of things says Add a new Post to the current `Dialogue`, and it passes an empty `dialogue_id` string. - the `post_add()` handler on the server dutifully unpacks the `dialog_id` field with `post.dialogue_id.as_str().unwrap()`, and then passes on to the `post_add()` call inside the UI object - the `post_add()` implementation in the UI object then checks the `dialog_id` with if `pddb_key.eq(&dialogue_id)`, expecting that the key should match the dialog id. But through this path, the dialogue ID is always the empty string, so the function can't work. This patch causes the code to "fall through" and use the default `pddb_key` if the length of the `dialog_id` is zero. Not sure if this is the intended behavior, but in the test case at least I get posts appearing now once this patch is in. |
||
|---|---|---|
| .. | ||
| chat | ||
| cos_table | ||
| mass-storage | ||
| tls | ||
| userprefs | ||
| xous-pio | ||
| xous-pl230 | ||