jsonrpc: MessageSearchResult, always include chat_name(not an option anymore), also add author_id and chat_type (#4374)

* jsonrpc: `MessageSearchResult`, always include `chat_name`(not an option anymore), also add `author_id` and `chat_type`

* replace .ok_or_else with anyhow context
This commit is contained in:
Simon Laux
2023-05-09 12:22:32 +02:00
committed by GitHub
parent a0c51b3c3a
commit aa212b2b7e
3 changed files with 40 additions and 18 deletions

View File

@@ -10,13 +10,19 @@
- `get_chatlist_items_by_entries` now takes only chatids instead of `ChatListEntries`
- `get_chatlist_entries` now returns `Vec<u32>` of chatids instead of `ChatListEntries`
- `Event`: `context_id` property is now called `contextId`
- jsonrpc: expand `MessageSearchResult`:
- always include `chat_name`(not an option anymore)
- add `author_id`, `chat_type`, `chat_color`, `is_chat_protected`, `is_chat_contact_request`, `is_chat_archived`
- `author_name` now contains the overridden sender name.
- JSON-RPC: add API to get reactions outside the message snapshot
### Fixes
- Make the bots automatically accept group chat contact requests. #4377
### Fixes
- jsonrpc: typescript client: fix types of events in event emitter
## [1.114.0] - 2023-04-24
### Changes