mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Fix Web Bot attachments (#1845)
This commit is contained in:
parent
364352815d
commit
eca1e05379
@ -612,7 +612,7 @@ addActionHandler('openChatByUsername', async (global, actions, payload) => {
|
||||
const chat = selectCurrentChat(global);
|
||||
|
||||
if (!commentId) {
|
||||
if (chat && chat.username === username) {
|
||||
if (chat && chat.username === username && !startAttach) {
|
||||
actions.focusMessage({ chatId: chat.id, messageId });
|
||||
return;
|
||||
}
|
||||
@ -1340,6 +1340,7 @@ async function openChatByUsername(
|
||||
if (!chat) return;
|
||||
const global = getGlobal();
|
||||
const user = selectUser(global, chat.id);
|
||||
|
||||
if (!user) return;
|
||||
const isBot = isUserBot(user);
|
||||
if (!isBot || !user.isAttachMenuBot) {
|
||||
|
Loading…
Reference in New Issue
Block a user