重新构建dev产物(收藏文本折叠/搜索高亮、跳转定位消息两处修复)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
68044fa1bb
commit
ca71667975
@@ -323,6 +323,24 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
||||
}
|
||||
this.mountDnDEvents(this.dndRef);
|
||||
this.componentSetup({}, {});
|
||||
if (this.props.jumpToSeq) {
|
||||
const seq = parseInt(this.props.jumpToSeq, 10);
|
||||
const topicObj = this.props.tinode && this.props.topic ? this.props.tinode.getTopic(this.props.topic) : null;
|
||||
const attemptJump = () => this.jumpToMessage(seq);
|
||||
if (topicObj && !topicObj.isSubscribed()) {
|
||||
let tries = 0;
|
||||
const waitForSubscription = () => {
|
||||
if (topicObj.isSubscribed() || ++tries > 25) {
|
||||
attemptJump();
|
||||
} else {
|
||||
window.setTimeout(waitForSubscription, 200);
|
||||
}
|
||||
};
|
||||
waitForSubscription();
|
||||
} else {
|
||||
attemptJump();
|
||||
}
|
||||
}
|
||||
(0,_lib_im_api_js__WEBPACK_IMPORTED_MODULE_19__.getBootstrap)().then(data => {
|
||||
this.setState({
|
||||
messagePolicy: data.message_policy || null
|
||||
|
||||
Reference in New Issue
Block a user