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