Skip to content

Commit bd08fe5

Browse files
committed
don't try to switch to an empty stringed conversation
1 parent b883e06 commit bd08fe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Signal-Windows/Views/MainPage.xaml.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
8585
UpdateLayout();
8686
SwitchToStyle(GetCurrentViewStyle());
8787
MainPanel.DisplayMode = SplitViewDisplayMode.CompactInline;
88-
if (e.Parameter != null)
88+
if (Vm.RequestedConversationId != null && Vm.RequestedConversationId != "")
8989
{
90-
Vm.SelectConversation((string) e.Parameter);
90+
Vm.SelectConversation(Vm.RequestedConversationId);
9191
}
9292
else if (Vm.SelectedThread != null)
9393
{

0 commit comments

Comments
 (0)