Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Added a note regarding #172
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Mar 30, 2022
1 parent 2178990 commit 9508066
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
17 changes: 16 additions & 1 deletion UWPX_UI/Controls/OMEMO/OmemoCheckSupportsControl.xaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
<UserControl x:Class="UWPX_UI.Controls.OMEMO.OmemoCheckSupportsControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<!-- Checking: -->
<Grid x:Name="checkingGrid">
<Grid x:Name="checkingGrid"
Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
Expand All @@ -27,6 +34,7 @@

<!-- Status: -->
<Border x:Name="statusBanner"
Grid.Row="0"
Background="{ThemeResource SystemFillColorCautionBackgroundBrush}"
CornerRadius="{ThemeResource ControlCornerRadius}"
Visibility="Collapsed">
Expand Down Expand Up @@ -71,6 +79,13 @@
</Grid>
</Border>

<controls:MarkdownTextBlock x:Uid="OmemoCheckSupportsControl_omemo_broken_markdown"
Grid.Row="1"
Margin="0,10,0,0"
LinkClicked="OnMarkdownLinkClicked"
Text="⚠️ The OMEMO implementation in UWPX is currently incompatible to other implementations, like the one [Kaidan](https://www.kaidan.im/) is working on. For more information about this klick [here](https://github.com/UWPX/UWPX-Client/issues/172)."
TextWrapping="Wrap"/>

<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
<VisualState x:Name="Checking">
Expand Down
7 changes: 7 additions & 0 deletions UWPX_UI/Controls/OMEMO/OmemoCheckSupportsControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.ComponentModel;
using Manager.Classes.Chat;
using Microsoft.Toolkit.Uwp.UI.Controls;
using UWPX_UI_Context.Classes;
using UWPX_UI_Context.Classes.DataContext.Controls.OMEMO;
using UWPX_UI_Context.Classes.DataTemplates.Controls.OMEMO;
using Windows.UI.Xaml;
Expand Down Expand Up @@ -102,6 +104,11 @@ private void OnProperyChanged(object sender, PropertyChangedEventArgs e)
}
}

private async void OnMarkdownLinkClicked(object sender, LinkClickedEventArgs e)
{
await UiUtils.LaunchUriAsync(new Uri(e.Link));
}

#endregion
}
}
3 changes: 3 additions & 0 deletions UWPX_UI/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ Do not show the report "Something went wrong..." crash dialog, in case we cought
**Off**
In case we cought a crash, you will receive a dialog informing you about the crash and what will be reported.</value>
</data>
<data name="OmemoCheckSupportsControl_omemo_broken_markdown.Text" xml:space="preserve">
<value>⚠️ The OMEMO implementation in UWPX is currently incompatible to other implementations, like the one [Kaidan](https://www.kaidan.im/) is working on. For more information about this klick [here](https://github.com/UWPX/UWPX-Client/issues/172).</value>
</data>
<data name="PersonalizeSettingsPage_change_theme_tooltip.Text" xml:space="preserve">
<value>Requires an app restart to work properly once changed.</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions UWPX_UI/Strings/ru-RU/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ Do not show the report "Something went wrong..." crash dialog, in case we cought
**Выкл**
In case we cought a crash, you will receive a dialog informing you about the crash and what will be reported.</value>
</data>
<data name="OmemoCheckSupportsControl_omemo_broken_markdown.Text" xml:space="preserve">
<value>⚠️ The OMEMO implementation in UWPX is currently incompatible to other implementations, like the one [Kaidan](https://www.kaidan.im/) is working on. For more information about this klick [here](https://github.com/UWPX/UWPX-Client/issues/172).</value>
</data>
<data name="PersonalizeSettingsPage_change_theme_tooltip.Text" xml:space="preserve">
<value>Requires an app restart to work properly once changed.</value>
</data>
Expand Down

0 comments on commit 9508066

Please sign in to comment.