Chat: Implement folder badges (follow-up 2) (#6197)
This commit is contained in:
parent
4763bd3492
commit
6ad9b8575f
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "telegram-t",
|
||||
"version": "10.9.70",
|
||||
"version": "10.9.71",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "telegram-t",
|
||||
"version": "10.9.70",
|
||||
"version": "10.9.71",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@cryptography/aes": "^0.1.1",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "telegram-t",
|
||||
"version": "10.9.70",
|
||||
"version": "10.9.71",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
|
||||
@ -1 +1 @@
|
||||
10.9.70
|
||||
10.9.71
|
||||
|
||||
@ -118,10 +118,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.ListItem-button {
|
||||
height: 72px;
|
||||
}
|
||||
|
||||
.ripple-container {
|
||||
z-index: var(--z-chat-ripple);
|
||||
}
|
||||
@ -341,7 +337,7 @@
|
||||
}
|
||||
|
||||
&.has-tags {
|
||||
line-height: 1.25rem;
|
||||
line-height: 1.375rem;
|
||||
.info-row {
|
||||
height: 1.25rem;
|
||||
}
|
||||
|
||||
@ -359,6 +359,7 @@ const Chat: FC<OwnProps & StateProps> = ({
|
||||
isSelected && 'selected',
|
||||
isSelectedForum && 'selected-forum',
|
||||
isPreview && 'standalone',
|
||||
shouldRenderTags && 'chat-item-with-tags',
|
||||
className,
|
||||
);
|
||||
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
}
|
||||
|
||||
.tag {
|
||||
--custom-emoji-size: 0.75rem;
|
||||
|
||||
--emoji-size: 0.75rem;
|
||||
--custom-emoji-size: 0.75rem;
|
||||
|
||||
@ -21,7 +23,7 @@
|
||||
|
||||
font-size: 0.625rem;
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 0.75rem;
|
||||
line-height: 0.875rem;
|
||||
color: var(--accent-color);
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
|
||||
@ -20,12 +20,12 @@ import './BotKeyboardMenu.scss';
|
||||
export type OwnProps = {
|
||||
isOpen: boolean;
|
||||
messageId: number;
|
||||
threadId?: ThreadId;
|
||||
onClose: NoneToVoidFunction;
|
||||
};
|
||||
|
||||
type StateProps = {
|
||||
message?: ApiMessage;
|
||||
threadId?: ThreadId;
|
||||
};
|
||||
|
||||
const BotKeyboardMenu: FC<OwnProps & StateProps> = ({
|
||||
|
||||
@ -223,6 +223,12 @@
|
||||
padding: 0.5625rem;
|
||||
}
|
||||
|
||||
&.chat-item-with-tags {
|
||||
.ListItem-button {
|
||||
padding: 0.375rem 0.5625rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.contact-list-item {
|
||||
.ListItem-button {
|
||||
padding: 0.5rem;
|
||||
|
||||
@ -1711,6 +1711,7 @@ addActionHandler('openChatByUsername', async (global, actions, payload): Promise
|
||||
text,
|
||||
timestamp,
|
||||
linkContext,
|
||||
isDirect,
|
||||
}, tabId,
|
||||
);
|
||||
if (onChatChanged) {
|
||||
@ -3406,12 +3407,13 @@ async function openChatByUsername<T extends GlobalState>(
|
||||
text?: string;
|
||||
timestamp?: number;
|
||||
linkContext?: LinkContext;
|
||||
isDirect?: boolean;
|
||||
},
|
||||
...[tabId = getCurrentTabId()]: TabArgs<T>
|
||||
) {
|
||||
const {
|
||||
username, threadId, channelPostId, startParam, ref, startAttach, attach, text, timestamp,
|
||||
linkContext,
|
||||
linkContext, isDirect,
|
||||
} = params;
|
||||
const currentChat = selectCurrentChat(global, tabId);
|
||||
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import { LinkContext } from './../../api/types/messages';
|
||||
import type {
|
||||
ApiAttachBot,
|
||||
ApiAttachment,
|
||||
@ -677,6 +676,7 @@ export interface ActionPayloads {
|
||||
timestamp?: number;
|
||||
onChatChanged?: CallbackAction;
|
||||
linkContext?: LinkContext;
|
||||
isDirect?: boolean;
|
||||
} & WithTabId;
|
||||
processBoostParameters: {
|
||||
usernameOrId: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user