Hotfixes for emoji & multi-account (#5872)
This commit is contained in:
parent
29ec767eb2
commit
88f34dbde4
@ -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,
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user