Skip to content

Commit a4af91e

Browse files
committed
Shorten notification tag
1 parent d4fb794 commit a4af91e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Signal-Windows/Signal/IncomingMessages.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,9 @@ private void HandleSignalMessage(SignalServiceEnvelope envelope, SignalServiceCo
437437

438438
private void SendMessageNotification(SignalMessage message)
439439
{
440-
string notificationId = new QueryString()
441-
{
442-
{ "threadId", message.ThreadId },
443-
{ "recievedTimestamp", message.ReceivedTimestamp.ToString() }
444-
}.ToString();
440+
// notification tags can only be 16 chars (64 after creators update)
441+
// https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Notifications.ToastNotification#Windows_UI_Notifications_ToastNotification_Tag
442+
string notificationId = message.ThreadId;
445443
ToastBindingGeneric toastBinding = new ToastBindingGeneric()
446444
{
447445
AppLogoOverride = new ToastGenericAppLogo()

0 commit comments

Comments
 (0)