Skip to content

Commit 88f34db

Browse files
zubidenAjaxy
authored andcommitted
Hotfixes for emoji & multi-account (#5872)
1 parent 29ec767 commit 88f34db

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

‎src/api/gramjs/methods/chats.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2027,13 +2027,13 @@ export async function fetchChannelRecommendations({ chat }: { chat?: ApiChat })
20272027
};
20282028
}
20292029

2030-
export async function updatePaidMessagesPrice({
2030+
export function updatePaidMessagesPrice({
20312031
chat, paidMessagesStars,
20322032
}: {
20332033
chat?: ApiChat; paidMessagesStars: number;
20342034
}) {
20352035
return invokeRequest(new GramJs.channels.UpdatePaidMessagesPrice({
2036-
channel: chat && buildInputEntity(chat.id, chat.accessHash) as GramJs.InputChannel,
2036+
channel: chat && buildInputChannel(chat.id, chat.accessHash),
20372037
sendPaidMessagesStars: BigInt(paidMessagesStars),
20382038
}), {
20392039
shouldReturnTrue: true,

‎src/components/middle/message/_message-content.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,9 @@
552552

553553
&:not(.custom-shape) .emoji:not(.custom-emoji) {
554554
display: inline-block;
555-
width: 1.25rem;
556-
background-size: 1.25rem;
555+
width: 1.25em;
556+
height: 1.25em;
557+
background-size: 1.25em;
557558
color: transparent;
558559
margin-inline-end: 1px;
559560
vertical-align: text-bottom;

‎src/components/ui/Tab.scss

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
display: flex;
5050
align-items: center;
5151
white-space: nowrap;
52+
height: 1.5rem; // Emoji-only titles ignore line-height on Windows
5253
gap: 1px; // Prevent custom emoji sticking to the text
5354
}
5455

‎src/util/sessions.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export function hasStoredSession() {
1414
return true;
1515
}
1616

17+
const slotData = loadSlotSession(ACCOUNT_SLOT);
18+
if (slotData) return Boolean(slotData.dcId);
19+
1720
if (!ACCOUNT_SLOT) {
1821
const legacyAuthJson = localStorage.getItem(SESSION_LEGACY_USER_KEY);
1922
if (legacyAuthJson) {
@@ -27,8 +30,7 @@ export function hasStoredSession() {
2730
}
2831
}
2932

30-
const slotData = loadSlotSession(ACCOUNT_SLOT);
31-
return Boolean(slotData && slotData.dcId);
33+
return false;
3234
}
3335

3436
export function storeSession(sessionData: ApiSessionData) {

0 commit comments

Comments
 (0)