From 7b662ad647b93336a2b69d4e525166aaa3d1681d Mon Sep 17 00:00:00 2001 From: Astra Date: Wed, 9 Sep 2026 13:49:07 +0100 Subject: [PATCH] welcome message: point updates-channel mention at @ziodotsh Rename the official updates channel mention from @zio to @ziodotsh in the welcome message template and update the affected send-message test. --- internal/domain/welcome_message.go | 2 +- internal/rpc/channels_updates_rpc_test.go | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/domain/welcome_message.go b/internal/domain/welcome_message.go index b66ac942..a60df2cf 100644 --- a/internal/domain/welcome_message.go +++ b/internal/domain/welcome_message.go @@ -9,7 +9,7 @@ import ( // officialUpdatesChannelMention is the public @username of the updates channel // linked from the welcome message. It is carried both in the template text and // in a MessageEntityMention so clients render it as a tappable link. -const officialUpdatesChannelMention = "@zio" +const officialUpdatesChannelMention = "@ziodotsh" const officialWelcomeMessageTemplate = "👋 Welcome to OwpenGram!\n\nYou just signed in via %s.\n\nIf this wasn't you, revoke this session from \"Settings > Privacy and Security > Active sessions\" immediately.\n\nIf you haven't already, feel free to join " + officialUpdatesChannelMention + " for all the latest updates!" diff --git a/internal/rpc/channels_updates_rpc_test.go b/internal/rpc/channels_updates_rpc_test.go index 57a60fe5..e663f59c 100644 --- a/internal/rpc/channels_updates_rpc_test.go +++ b/internal/rpc/channels_updates_rpc_test.go @@ -2,10 +2,6 @@ package rpc import ( "context" - "github.com/iamxvbaba/td/clock" - "github.com/iamxvbaba/td/proto" - "github.com/iamxvbaba/td/tg" - "go.uber.org/zap/zaptest" "strings" appchannels "telesrv/internal/app/channels" appupdates "telesrv/internal/app/updates" @@ -13,6 +9,11 @@ import ( "telesrv/internal/domain" "telesrv/internal/store/memory" "testing" + + "github.com/iamxvbaba/td/clock" + "github.com/iamxvbaba/td/proto" + "github.com/iamxvbaba/td/tg" + "go.uber.org/zap/zaptest" ) func TestChannelRealtimeRecipientsPreferOnlineMembers(t *testing.T) { @@ -662,7 +663,7 @@ func TestChannelSendMessageWithUnresolvableMentionSucceeds(t *testing.T) { t.Fatalf("create megagroup: %v", err) } peer := &tg.InputPeerChannel{ChannelID: created.Channel.ID, AccessHash: created.Channel.AccessHash} - for i, text := range []string{"look at @zio", "hi @2cool and @_x"} { + for i, text := range []string{"look at @ziodotsh", "hi @2cool and @_x"} { if _, err := r.onMessagesSendMessage(WithUserID(ctx, owner.ID), &tg.MessagesSendMessageRequest{ Peer: peer, Message: text,