diff --git a/web/chat/chat-thread-composer.react.js b/web/chat/chat-thread-composer.react.js --- a/web/chat/chat-thread-composer.react.js +++ b/web/chat/chat-thread-composer.react.js @@ -97,17 +97,7 @@ async (userListItem: UserListItem) => { const { alert, notice, disabled, ...user } = userListItem; setUsernameInputText(''); - if (!alert) { - dispatch({ - type: updateNavInfoActionType, - payload: { - selectedUserList: [...userInfoInputArray, user], - }, - }); - } else if ( - notice === notFriendNotice && - userInfoInputArray.length === 0 - ) { + if (notice === notFriendNotice && userInfoInputArray.length === 0) { const newUserInfoInputArray = [ { id: userListItem.id, username: userListItem.username }, ]; @@ -129,6 +119,13 @@ pendingThread: threadInfo, }, }); + } else if (!alert) { + dispatch({ + type: updateNavInfoActionType, + payload: { + selectedUserList: [...userInfoInputArray, user], + }, + }); } else { pushModal({alert.text}); }