feat: sync chatlist sharing support
This commit is contained in:
parent
ec6e8fd13d
commit
2a9c12263f
62 changed files with 3408 additions and 212 deletions
|
|
@ -455,7 +455,7 @@ func (r *Router) connectedBusinessBotPeerSettings(ctx context.Context, ownerUser
|
|||
if botUser, found, err := r.connectedBusinessBotByID(ctx, ownerUserID, bot.BotUserID); err != nil {
|
||||
return domain.PeerSettings{}, err
|
||||
} else if found {
|
||||
settings.BusinessBotManageURL = connectedBusinessBotManageURL(botUser)
|
||||
settings.BusinessBotManageURL = r.connectedBusinessBotManageURL(botUser)
|
||||
}
|
||||
if settings.BusinessBotManageURL == "" {
|
||||
settings.BusinessBotManageURL = "telesrv://business-bot"
|
||||
|
|
@ -477,11 +477,11 @@ func (r *Router) connectedBusinessPeerFacts(ctx context.Context, ownerUserID, pe
|
|||
return existingChat, isContact
|
||||
}
|
||||
|
||||
func connectedBusinessBotManageURL(bot domain.User) string {
|
||||
func (r *Router) connectedBusinessBotManageURL(bot domain.User) string {
|
||||
if bot.Username == "" {
|
||||
return ""
|
||||
}
|
||||
return "https://telesrv.net/" + bot.Username
|
||||
return r.publicLink(bot.Username)
|
||||
}
|
||||
|
||||
func (r *Router) recordConnectedBusinessPeerSettings(ctx context.Context, userID int64, peer domain.Peer, settings domain.PeerSettings) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue