()
| 211 | } |
| 212 | |
| 213 | export function updatePinButtonState() { |
| 214 | const isPinned = isMessagePinned(state.selectedConnectionId, state.selectedMessageId); |
| 215 | elements.btnPin.classList.toggle('active', isPinned); |
| 216 | elements.btnPin.title = isPinned ? '取消置顶此消息' : '置顶此消息'; |
| 217 | updateDetailNavButtons(); |
| 218 | } |
| 219 | |
| 220 | export function showAdjacentMessage(direction) { |
| 221 | const adjacentMessage = getAdjacentMessage(direction); |
no test coverage detected