Add "new conversation" composer for direct messages
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user