xous-core/libs
bunnie c2becc089b implement default behavior when no dialog is specified.
- 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.
2023-11-28 17:24:56 +08:00
..
chat implement default behavior when no dialog is specified. 2023-11-28 17:24:56 +08:00
cos_table add a table-based implementation of cosine 2023-01-02 17:47:48 +08:00
mass-storage bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00
tls bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00
userprefs bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00
xous-pio bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00
xous-pl230 bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00