pix editing ofpinned messages

This commit is contained in:
or-else
2023-04-05 10:14:07 -07:00
parent 454dc204c8
commit ebe47b345d
9 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -6337,7 +6337,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
}
}
const pinnedMessages = [];
this.state.pins.forEach(seq => pinnedMessages.push(topic.findMessage(seq)));
this.state.pins.forEach(seq => pinnedMessages.push(topic.latestMsgVersion(seq)));
const messageNodes = [];
let previousFrom = null;
let prevDate = null;
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5
View File
@@ -410,6 +410,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "EXPIRE_PROMISES_TIMEOUT": () => (/* binding */ EXPIRE_PROMISES_TIMEOUT),
/* harmony export */ "LIBRARY": () => (/* binding */ LIBRARY),
/* harmony export */ "LOCAL_SEQID": () => (/* binding */ LOCAL_SEQID),
/* harmony export */ "MAX_PINNED_COUNT": () => (/* binding */ MAX_PINNED_COUNT),
/* harmony export */ "MESSAGE_STATUS_FAILED": () => (/* binding */ MESSAGE_STATUS_FAILED),
/* harmony export */ "MESSAGE_STATUS_FATAL": () => (/* binding */ MESSAGE_STATUS_FATAL),
/* harmony export */ "MESSAGE_STATUS_NONE": () => (/* binding */ MESSAGE_STATUS_NONE),
@@ -463,6 +464,7 @@ const EXPIRE_PROMISES_PERIOD = 1000;
const RECV_TIMEOUT = 100;
const DEFAULT_MESSAGES_PAGE = 24;
const DEL_CHAR = '\u2421';
const MAX_PINNED_COUNT = 5;
/***/ }),
@@ -3733,6 +3735,9 @@ class Topic {
if (pin) {
if (!pinned.includes(seq)) {
changed = true;
if (pinned.length == _config_js__WEBPACK_IMPORTED_MODULE_3__.MAX_PINNED_COUNT) {
pinned.shift();
}
pinned.push(seq);
}
} else {
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long