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
|
|
@ -159,6 +159,27 @@ func tgMessageServiceAction(msg domain.Message) tg.MessageActionClass {
|
|||
action.SetDuration(m.ServiceAction.Call.Duration)
|
||||
}
|
||||
return action
|
||||
case domain.MessageServiceActionConferenceCall:
|
||||
c := m.ServiceAction.ConferenceCall
|
||||
if c == nil {
|
||||
return &tg.MessageActionEmpty{}
|
||||
}
|
||||
action := &tg.MessageActionConferenceCall{
|
||||
Missed: c.Missed,
|
||||
Active: c.Active,
|
||||
Video: c.Video,
|
||||
CallID: c.CallID,
|
||||
}
|
||||
if c.Duration > 0 {
|
||||
action.SetDuration(c.Duration)
|
||||
}
|
||||
if len(c.OtherParticipants) > 0 {
|
||||
peers := tgPeerList(c.OtherParticipants)
|
||||
if len(peers) > 0 {
|
||||
action.SetOtherParticipants(peers)
|
||||
}
|
||||
}
|
||||
return action
|
||||
case domain.MessageServiceActionBotAllowed:
|
||||
allowed := m.ServiceAction.BotAllowed
|
||||
if allowed == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue