()
| 776 | } |
| 777 | |
| 778 | function updatePinButtonState() { |
| 779 | const isPinned = isMessagePinned(state.selectedConnectionId, state.selectedMessageId); |
| 780 | elements$6.btnPin.classList.toggle('active', isPinned); |
| 781 | elements$6.btnPin.title = isPinned ? '取消置顶此消息' : '置顶此消息'; |
| 782 | updateDetailNavButtons(); |
| 783 | } |
| 784 | |
| 785 | function showAdjacentMessage(direction) { |
| 786 | const adjacentMessage = getAdjacentMessage(direction); |
no test coverage detected