api!:jsonrpc: sort reactions in descending order (#4388)

convert `JSONRPCReactions.reactions` to a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
---------

Co-authored-by: link2xt <link2xt@testrun.org>
This commit is contained in:
Asiel Díaz Benítez
2023-05-11 14:29:43 +02:00
committed by GitHub
parent 2328ba54be
commit 4a593a8d7e
3 changed files with 69 additions and 14 deletions

View File

@@ -10,6 +10,7 @@
- BREAKING: jsonrpc:
- `get_chatlist_items_by_entries` now takes only chatids instead of `ChatListEntries`
- `get_chatlist_entries` now returns `Vec<u32>` of chatids instead of `ChatListEntries`
- `JSONRPCReactions.reactions` is now a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
- `Event`: `context_id` property is now called `contextId`
- jsonrpc: expand `MessageSearchResult`:
- always include `chat_name`(not an option anymore)