Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32193689
D13544.1765099126.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13544.1765099126.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
Sun, Dec 7, 9:18 AM (6 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843261
Default Alt Text
D13544.1765099126.diff (1 KB)
Attached To
Mode
D13544: [web] Swap order of conditions in ChatThreadComposer onSelectUserFromSearch
Attached
Detach File
Event Timeline
Log In to Comment