Compare commits

..

No commits in common. "b52d3f3f64e8f3b944bfe2eb8f467cd3c9b6b70d" and "63c565e4900cf73fbe187cf8999aa1b085f84c0d" have entirely different histories.

2 changed files with 6 additions and 7 deletions

View file

@ -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 = "@ziodotsh"
const officialUpdatesChannelMention = "@zio"
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!"

View file

@ -2,6 +2,10 @@ 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"
@ -9,11 +13,6 @@ 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) {
@ -663,7 +662,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 @ziodotsh", "hi @2cool and @_x"} {
for i, text := range []string{"look at @zio", "hi @2cool and @_x"} {
if _, err := r.onMessagesSendMessage(WithUserID(ctx, owner.ID), &tg.MessagesSendMessageRequest{
Peer: peer,
Message: text,