重新构建dev产物(撤回菜单误判、验证码文案、文本收藏撤回态三处修复)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-09-06 02:13:55 +08:00
co-authored by Claude Sonnet 5
parent b5531b0b7f
commit 1e5e64ae2c
4 changed files with 18 additions and 9 deletions
+13 -4
View File
@@ -3566,7 +3566,7 @@ const REASON_MESSAGES = {
YOUTH_MODE_RESTRICTED: '青少年模式下无法使用此功能', YOUTH_MODE_RESTRICTED: '青少年模式下无法使用此功能',
RISK_CONFIRMATION_REQUIRED: '需要先完成安全确认', RISK_CONFIRMATION_REQUIRED: '需要先完成安全确认',
RISK_ACTION_BLOCKED: '该操作已被安全策略拦截', RISK_ACTION_BLOCKED: '该操作已被安全策略拦截',
CODE_INVALID: '独立密码不正确', CODE_INVALID: '验证码或独立密码不正确',
TOO_MANY_ATTEMPTS: details => details && details.retry_after_seconds ? `连续输错次数过多,请 ${details.retry_after_seconds} 秒后重试` : '连续输错次数过多,请稍后重试' TOO_MANY_ATTEMPTS: details => details && details.retry_after_seconds ? `连续输错次数过多,请 ${details.retry_after_seconds} 秒后重试` : '连续输错次数过多,请稍后重试'
}; };
function requestId() { function requestId() {
@@ -8916,10 +8916,12 @@ function resolveSourceName(topic, onDone) {
onDone('已保存的消息'); onDone('已保存的消息');
return; return;
} }
const call = topic.startsWith('grp') ? (0,_lib_im_api_js__WEBPACK_IMPORTED_MODULE_5__.getGroup)(topic).then(g => g.name) : (0,_lib_im_api_js__WEBPACK_IMPORTED_MODULE_5__.getUserProfile)(topic).then(p => p.display_name); const call = topic.startsWith('grp') ? (0,_lib_im_api_js__WEBPACK_IMPORTED_MODULE_5__.getGroup)(topic).then(g => g.name) : (0,_lib_im_api_js__WEBPACK_IMPORTED_MODULE_5__.getConversationContext)(topic).then(ctx => ctx.peer && (0,_lib_utils_js__WEBPACK_IMPORTED_MODULE_7__.topicDisplayName)(ctx.peer_user_id, ctx.peer.public, ctx.peer_user_id));
call.then(name => { call.then(name => {
if (name) {
sourceNameCache.set(topic, name); sourceNameCache.set(topic, name);
onDone(name); onDone(name);
}
}).catch(() => {}); }).catch(() => {});
} }
const navigate = (view, params) => { const navigate = (view, params) => {
@@ -9222,7 +9224,14 @@ function FavoriteItem({
}, void 0, false) }, void 0, false)
}, void 0, false) : null, (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("div", { }, void 0, false) : null, (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("div", {
className: "library-favorite-content", className: "library-favorite-content",
children: [item.type === 'text' ? (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("p", { children: [item.type === 'text' ? item.availability === 'removed' ? (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("p", {
className: "library-text-content removed",
children: [(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)(Icon, {
children: "block"
}, void 0, false), (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("em", {
children: "文本已失效"
}, void 0, false)]
}, void 0, true) : (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("p", {
className: "library-text-content", className: "library-text-content",
children: plainTextOf(item.snapshot && item.snapshot.content, item.snapshot && item.snapshot.text) children: plainTextOf(item.snapshot && item.snapshot.content, item.snapshot && item.snapshot.text)
}, void 0, false) : null, item.type === 'file' ? (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)(FileCard, { }, void 0, false) : null, item.type === 'file' ? (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)(FileCard, {
@@ -9884,7 +9893,7 @@ function History({
children: [(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("strong", { children: [(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("strong", {
children: nameOf(item.from) children: nameOf(item.from)
}, void 0, false), (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("p", { }, void 0, false), (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)("p", {
children: item.type === 'text' ? (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)(Highlight, { children: item.type === 'text' ? item.availability === 'removed' ? '文本已失效' : (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxDEV)(Highlight, {
text: item.snippet || '', text: item.snippet || '',
query: query query: query
}, void 0, false) : TYPE_LABEL[item.type] || item.snippet || '' }, void 0, false) : TYPE_LABEL[item.type] || item.snippet || ''
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1016,7 +1016,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
menuItems.push('menu_item_copy', 'menu_item_favorite'); menuItems.push('menu_item_copy', 'menu_item_favorite');
const recallWindow = this.state.messagePolicy ? this.state.messagePolicy.recall_window_seconds : 0; const recallWindow = this.state.messagePolicy ? this.state.messagePolicy.recall_window_seconds : 0;
const canRecallAsAdmin = topic.isGroupType() && topic.getAccessMode() && topic.getAccessMode().isAdmin(); const canRecallAsAdmin = topic.isGroupType() && topic.getAccessMode() && topic.getAccessMode().isAdmin();
if ((params.userFrom == this.props.myUserId || canRecallAsAdmin) && params.seq > 0 && recallWindow > 0 && params.timestamp && params.timestamp.getTime() > new Date().getTime() - recallWindow * 1000) { if ((params.userFrom == this.props.myUserId || canRecallAsAdmin) && params.seq > 0 && params.seq < tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.LOCAL_SEQID && recallWindow > 0 && params.timestamp && params.timestamp.getTime() > new Date().getTime() - recallWindow * 1000) {
menuItems.push('menu_item_recall'); menuItems.push('menu_item_recall');
} }
if (topic.isSelfType()) { if (topic.isSelfType()) {
File diff suppressed because one or more lines are too long