diff --git a/src/api/gramjs/methods/chats.ts b/src/api/gramjs/methods/chats.ts index 151f8e194..91b88cdb6 100644 --- a/src/api/gramjs/methods/chats.ts +++ b/src/api/gramjs/methods/chats.ts @@ -2027,13 +2027,13 @@ export async function fetchChannelRecommendations({ chat }: { chat?: ApiChat }) }; } -export async function updatePaidMessagesPrice({ +export function updatePaidMessagesPrice({ chat, paidMessagesStars, }: { chat?: ApiChat; paidMessagesStars: number; }) { return invokeRequest(new GramJs.channels.UpdatePaidMessagesPrice({ - channel: chat && buildInputEntity(chat.id, chat.accessHash) as GramJs.InputChannel, + channel: chat && buildInputChannel(chat.id, chat.accessHash), sendPaidMessagesStars: BigInt(paidMessagesStars), }), { shouldReturnTrue: true, diff --git a/src/components/middle/message/_message-content.scss b/src/components/middle/message/_message-content.scss index 68106c10e..bcb11debc 100644 --- a/src/components/middle/message/_message-content.scss +++ b/src/components/middle/message/_message-content.scss @@ -552,8 +552,9 @@ &:not(.custom-shape) .emoji:not(.custom-emoji) { display: inline-block; - width: 1.25rem; - background-size: 1.25rem; + width: 1.25em; + height: 1.25em; + background-size: 1.25em; color: transparent; margin-inline-end: 1px; vertical-align: text-bottom; diff --git a/src/components/ui/Tab.scss b/src/components/ui/Tab.scss index a33992721..d23b1cdca 100644 --- a/src/components/ui/Tab.scss +++ b/src/components/ui/Tab.scss @@ -49,6 +49,7 @@ display: flex; align-items: center; white-space: nowrap; + height: 1.5rem; // Emoji-only titles ignore line-height on Windows gap: 1px; // Prevent custom emoji sticking to the text } diff --git a/src/util/sessions.ts b/src/util/sessions.ts index f8f9ad4ea..5efef5c5d 100644 --- a/src/util/sessions.ts +++ b/src/util/sessions.ts @@ -14,6 +14,9 @@ export function hasStoredSession() { return true; } + const slotData = loadSlotSession(ACCOUNT_SLOT); + if (slotData) return Boolean(slotData.dcId); + if (!ACCOUNT_SLOT) { const legacyAuthJson = localStorage.getItem(SESSION_LEGACY_USER_KEY); if (legacyAuthJson) { @@ -27,8 +30,7 @@ export function hasStoredSession() { } } - const slotData = loadSlotSession(ACCOUNT_SLOT); - return Boolean(slotData && slotData.dcId); + return false; } export function storeSession(sessionData: ApiSessionData) {