removed ability to send empty messages
This commit is contained in:
committed by
Felix Hartmann (PEA3-Fe-FI)
parent
5ce1316245
commit
4c0413e7d8
@@ -217,33 +217,19 @@ namespace PolyChat
|
||||
private void OnKeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e)
|
||||
{
|
||||
updateSendButtonEnabled();
|
||||
if (e.Key == Windows.System.VirtualKey.Enter)
|
||||
if (buttonSend.IsEnabled && e.Key == Windows.System.VirtualKey.Enter)
|
||||
{
|
||||
OnSendMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public static IAsyncOperation<ContentDialogResult> SafelyOpenDialog(Dialog d)
|
||||
public static IAsyncOperation<ContentDialogResult> SafelyOpenDialog(ContentDialog d)
|
||||
{
|
||||
if(VisualTreeHelper.GetOpenPopups(Window.Current).Count == 0)
|
||||
return d.ShowAsync();
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IAsyncOperation<ContentDialogResult> SafelyOpenDialog(NewChatDialog d)
|
||||
{
|
||||
if (VisualTreeHelper.GetOpenPopups(Window.Current).Count == 0)
|
||||
return d.ShowAsync();
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IAsyncOperation<ContentDialogResult> SafelyOpenDialog(EditUsernameDialog d)
|
||||
{
|
||||
if (VisualTreeHelper.GetOpenPopups(Window.Current).Count == 0)
|
||||
return d.ShowAsync();
|
||||
return null;
|
||||
}
|
||||
|
||||
// UPDATE FUNCTIONS FOR UI PLACEHOLDERS
|
||||
|
||||
private void updateNoChatsPlaceholder()
|
||||
|
||||
Reference in New Issue
Block a user