From 4b2795d7f489b8ea40fb9f1f928d9cda5a463079 Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Thu, 15 Jun 2017 13:10:42 +0200
Subject: [PATCH] Changed display name of ZPush Accounts to the STMP address,
as it defaulted to full name, which may be in multiple accounts
---
.../AcaciaZPushPlugin/Features/DebugSupport/DebugInfo.cs | 2 +-
src/AcaciaZPushPlugin/AcaciaZPushPlugin/ZPush/ZPushAccount.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/DebugInfo.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/DebugInfo.cs
index dc0244f..695331c 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/DebugInfo.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/DebugSupport/DebugInfo.cs
@@ -90,7 +90,7 @@ namespace Acacia.Features.DebugSupport
// Add accounts
foreach (ZPushAccount account in ThisAddIn.Instance.Watcher.Accounts.GetAccounts())
{
- PropertyDescriptor p = new CustomPropertyDescriptor(account.DisplayName, DebugCategory.Accounts, account);
+ PropertyDescriptor p = new CustomPropertyDescriptor(account.Account.DisplayName, DebugCategory.Accounts, account);
properties.Add(p);
}
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ZPush/ZPushAccount.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ZPush/ZPushAccount.cs
index c2ea0f8..5325331 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ZPush/ZPushAccount.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/ZPush/ZPushAccount.cs
@@ -46,7 +46,7 @@ namespace Acacia.ZPush
[Browsable(false)]
public IAccount Account { get { return _account; } }
- public string DisplayName { get { return _account.DisplayName; } }
+ public string DisplayName { get { return _account.SmtpAddress; } }
public string DeviceId { get { return _account.DeviceId; } }
[Browsable(false)]