Add "new conversation" composer for direct messages
This commit is contained in:
parent
84dc166b63
commit
06fb4fd0bc
61 changed files with 5960 additions and 3887 deletions
|
@ -58,9 +58,9 @@ export async function joinViaLink(hash: string): Promise<void> {
|
|||
window.log.warn(
|
||||
`joinViaLink/${logId}: Already a member of group, opening conversation`
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal(
|
||||
existingConversation.id
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal({
|
||||
conversationId: existingConversation.id,
|
||||
});
|
||||
window.window.Whisper.ToastView.show(
|
||||
window.Whisper.AlreadyGroupMemberToast,
|
||||
document.getElementsByClassName('conversation-stack')[0]
|
||||
|
@ -132,9 +132,9 @@ export async function joinViaLink(hash: string): Promise<void> {
|
|||
window.log.warn(
|
||||
`joinViaLink/${logId}: Already awaiting approval, opening conversation`
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal(
|
||||
existingConversation.id
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal({
|
||||
conversationId: existingConversation.id,
|
||||
});
|
||||
|
||||
window.Whisper.ToastView.show(
|
||||
window.Whisper.AlreadyRequestedToJoinToast,
|
||||
|
@ -221,9 +221,9 @@ export async function joinViaLink(hash: string): Promise<void> {
|
|||
window.log.warn(
|
||||
`joinViaLink/${logId}: User is part of group on second check, opening conversation`
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal(
|
||||
targetConversation.id
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal({
|
||||
conversationId: targetConversation.id,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -302,9 +302,9 @@ export async function joinViaLink(hash: string): Promise<void> {
|
|||
);
|
||||
}
|
||||
|
||||
window.reduxActions.conversations.openConversationInternal(
|
||||
targetConversation.id
|
||||
);
|
||||
window.reduxActions.conversations.openConversationInternal({
|
||||
conversationId: targetConversation.id,
|
||||
});
|
||||
} catch (error) {
|
||||
// Delete newly-created conversation if we encountered any errors
|
||||
if (tempConversation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue