Skip to content

Commit

Permalink
Excluded the Message Snippet Converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas09 committed Feb 10, 2018
1 parent 0b65781 commit 2bc993a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ClientApp/ModernEncryption.UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="b1ecc622-7a1b-4a3c-8715-73e39e12c4aa" Publisher="CN=ModernEncryption Team" Version="0.9.10.0" />
<Identity Name="b1ecc622-7a1b-4a3c-8715-73e39e12c4ab" Publisher="CN=ModernEncryption Team" Version="0.9.10.0" />
<mp:PhoneIdentity PhoneProductId="b1ecc622-7a1b-4a3c-8715-73e39e12c4a5" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>DontSpyUniversalWindows</DisplayName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ namespace ModernEncryption.Presentation.Converter
internal class MessageSnippetConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
{/*
var messages = (List<Message>)value;
if (messages.Count < 1) return ""; // If no messages, do not show a snippet
IDecrypt decryption = new DecryptionLogic(messages.Last());
var messageToBeSnip = decryption.Decrypt().Text;
if (messageToBeSnip.Length > 10) return messages.Last().Text.Substring(0, 10) + AppResources.MessageSnippetMoreSign;
return messageToBeSnip;
return messageToBeSnip;*/
return "";//TODO tut nur manchmal muss man wieder einfügen
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Expand Down

0 comments on commit 2bc993a

Please sign in to comment.