Page MenuHomePhabricator

D13544.diff
No OneTemporary

D13544.diff

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

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)

Event Timeline