feat: sync recent call and channel fixes
This commit is contained in:
parent
e5e0080216
commit
866a87583e
65 changed files with 6680 additions and 229 deletions
|
|
@ -29,6 +29,7 @@ func tgGroupCall(call domain.GroupCall, viewerUserID int64, canManage bool) tg.G
|
|||
JoinMuted: call.JoinMuted,
|
||||
CanChangeJoinMuted: canManage,
|
||||
Creator: call.CreatorUserID == viewerUserID && viewerUserID != 0,
|
||||
Conference: call.Conference(),
|
||||
// can_start_video:TDesktop 不读;DrKLO 用它喂入会前 dummy self 行的
|
||||
// video_joined。RTC 通话一律放行。
|
||||
CanStartVideo: true,
|
||||
|
|
@ -41,6 +42,13 @@ func tgGroupCall(call domain.GroupCall, viewerUserID int64, canManage bool) tg.G
|
|||
if call.Title != "" {
|
||||
out.SetTitle(call.Title)
|
||||
}
|
||||
if call.Conference() {
|
||||
if link := conferenceCanonicalInviteLink(call.InviteSlug); link != "" {
|
||||
out.SetInviteLink(link)
|
||||
} else if call.InviteLink != "" {
|
||||
out.SetInviteLink(call.InviteLink)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue