pix editing ofpinned messages
This commit is contained in:
@@ -1438,7 +1438,7 @@ class MessagesView extends React.Component {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user