chatinfo: override name for saved messages

This commit is contained in:
Tulir Asokan
2024-08-22 18:26:08 +03:00
parent eec5cbe447
commit 9d8f162f41
+4
View File
@@ -51,6 +51,10 @@ func (t *TelegramClient) getDMChatInfo(ctx context.Context, userID int64) (*brid
t.userID: {EventSender: t.mySender()},
}
}
if userID == t.telegramUserID {
// TODO also hardcode the avatar used by telegram?
chatInfo.Name = ptr.Ptr("Saved Messages")
}
return &chatInfo, nil
}