Show channels in a proper "Channel" chat (#3783)

* Rename "broadcast list" to "channel"/"broadcast channel" both in UI and code

* feat: Add new channel types

* Update CHANGELOG.md

* adb's review

* refactor: Rename BroadcastChannel to Broadcast

* Revert accidental change

* Make it possible to leave channels

- In a chat, if the chat is an InBroadcast, and it's not a contact
  request, then the `Leave` menu option is shown with the translated
  stock string `menu_leave_channel` as its label.
- If the user clicks on it, the confirmation dialog has
  `menu_leave_channel` (rather than `menu_leave_group`) as its positive
  option.

Counterpart of https://github.com/chatmail/core/pull/6984.

---------

Co-authored-by: adbenitez <asieldbenitez@gmail.com>
Co-authored-by: adb <adb@merlinux.eu>
This commit is contained in:
Hocuri 2025-07-10 10:32:04 +02:00 committed by GitHub
parent 23d521beed
commit 717777f628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 102 additions and 55 deletions

View file

@ -160,6 +160,10 @@ public class Rpc {
getResult("add_or_update_transport", accountId, param);
}
public int createBroadcast(int accountId, String chatName) throws RpcException {
return gson.fromJson(getResult("create_broadcast", accountId, chatName), Integer.class);
}
private static class Request {
private final String jsonrpc = "2.0";
public final String method;