Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3310936
D13544.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13544.diff
View Options
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 title={alert.title}>{alert.text}</Alert>);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 7:46 AM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2543443
Default Alt Text
D13544.diff (1 KB)
Attached To
Mode
D13544: [web] Swap order of conditions in ChatThreadComposer onSelectUserFromSearch
Attached
Detach File
Event Timeline
Log In to Comment