Add channel to conversation

This commit is contained in:
2026-09-30 11:08:33 +03:30
parent f71e78f3a7
commit 4c8731122b
6 changed files with 291 additions and 35 deletions
+5 -1
View File
@@ -3946,6 +3946,8 @@ export interface UpdateConversationSettingsRequest {
export interface ConversationAccessDto {
canUse: boolean;
canCreateGroup: boolean;
/** ساخت کانال — فعلاً همان مجوز ساخت گروه */
canCreateChannel: boolean;
}
export interface ConversationSessionDto {
@@ -3966,7 +3968,7 @@ export interface ConversationPeerDto {
export interface ConversationRoomDto {
id: string;
externalRoomId: string;
kind: "dm" | "group";
kind: "dm" | "group" | "channel";
name: string;
unreadCount: number;
lastMessagePreview: string | null;
@@ -3974,6 +3976,8 @@ export interface ConversationRoomDto {
peerUserId: string | null;
/** سنجاق در لیست گفتگو — فقط برای کاربر جاری */
pinned?: boolean;
/** در کانال: آیا کاربر جاری می‌تواند پیام بفرستد */
canPost?: boolean;
}
export interface ConversationPinnedMessageDto {