Skip to content

Commit 6f47f72

Browse files
BP602claude
andauthored
fix(chat): correct chatters selector for @ mention autocomplete (#43)
* Fix cross-platform icon compatibility - Add cross-platform icon handling for Linux/macOS support - Convert Windows .ico to .png for non-Windows platforms - Update tray and thumbar icons to use platform-appropriate format Fixes application crashes on Linux due to unsupported .ico format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(chat): correct chatters selector for @ mention autocomplete Fixes the data selector for chatters in the chat input component. The selector was looking for chatters in state.chatrooms[].chatters but the data is actually stored in state.chatters[chatroomId]. Resolves #40 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 20d658b commit 6f47f72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/renderer/src/components/Chat/Input

src/renderer/src/components/Chat/Input/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const KeyHandler = ({ chatroomId, onSendMessage, replyInputData, setReplyInputDa
197197
const userChatroomInfo = useChatStore(
198198
useShallow((state) => state.chatrooms.find((room) => room.id === chatroomId)?.userChatroomInfo),
199199
);
200-
const chatters = useChatStore(useShallow((state) => state.chatrooms.find((room) => room.id === chatroomId)?.chatters));
200+
const chatters = useChatStore(useShallow((state) => state.chatters[chatroomId]));
201201
const kickEmotes = useChatStore(useShallow((state) => state.chatrooms.find((room) => room.id === chatroomId)?.emotes));
202202

203203
const searchEmotes = useCallback(

0 commit comments

Comments
 (0)