diff --git a/src/PepperDash.Essentials.Devices.Common/VideoCodec/MockVC/MockCodecDirectory.cs b/src/PepperDash.Essentials.Devices.Common/VideoCodec/MockVC/MockCodecDirectory.cs index 185f089f..e5699752 100644 --- a/src/PepperDash.Essentials.Devices.Common/VideoCodec/MockVC/MockCodecDirectory.cs +++ b/src/PepperDash.Essentials.Devices.Common/VideoCodec/MockVC/MockCodecDirectory.cs @@ -217,14 +217,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "nyc_2", - Name = "Sumanth Rayancha", + Name = "Priya Chandran", Title = @"CTO", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "srayancha.pepperdash.com", + Number = "pchandran.pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } @@ -233,14 +233,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "nyc_3", - Name = "Justin Gordon", + Name = "Miles Anderson", Title = @"Software Developer", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "jgordon.pepperdash.com", + Number = "manderson.pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } @@ -309,14 +309,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "sfo_1", - Name = "David Huselid", + Name = "Owen Bradshaw", Title = @"Cive President, COO", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "dhuselid.pepperdash.com", + Number = "obradshaw.pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } @@ -347,14 +347,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "den_1", - Name = "Heath Volmer", + Name = "Derek Simmons", Title = @"Software Developer", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "hvolmer.pepperdash.com", + Number = "dsimmons.pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } @@ -385,14 +385,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "atx_1", - Name = "Vincent Longano", + Name = "Marcus Webb", Title = @"Product Development Manager", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "vlongano.pepperdash.com", + Number = "mwebb.pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } @@ -452,14 +452,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec new DirectoryContact() { ContactId = "cdn_1", - Name = "Neil Dorin", + Name = "Alex Turner", Title = @"Software Developer /SC", ContactMethods = new List() { new ContactMethod() { ContactMethodId = "cid_1", - Number = "ndorin@pepperdash.com", + Number = "aturner@pepperdash.com", Device = eContactMethodDevice.Video, CallType = eContactMethodCallType.Video } diff --git a/src/PepperDash.Essentials.MobileControl.Messengers/Messengers/IHasDirectoryMessenger.cs b/src/PepperDash.Essentials.MobileControl.Messengers/Messengers/IHasDirectoryMessenger.cs index fd4db6b4..3c87a5bc 100644 --- a/src/PepperDash.Essentials.MobileControl.Messengers/Messengers/IHasDirectoryMessenger.cs +++ b/src/PepperDash.Essentials.MobileControl.Messengers/Messengers/IHasDirectoryMessenger.cs @@ -78,6 +78,11 @@ namespace PepperDash.Essentials.AppServer.Messengers this.LogVerbose("Sending Directory. Directory Item Count: {directoryItemCount}", directory.CurrentDirectoryResults.Count); Task.Run(() => PostStatusMessage(new IHasDirectoryStateMessage { + // DirectoryRoot is otherwise only sent once, in response to an explicit /fullStatus + // request. Since the root directory can keep growing after that (e.g. contacts + // trickling in from a paged/async phonebook sync), include it here too so it stays + // current as new directory results arrive, not just on first subscribe. + DirectoryRoot = _directory.DirectoryRoot, CurrentDirectory = directory })); } @@ -93,6 +98,7 @@ namespace PepperDash.Essentials.AppServer.Messengers { PostStatusMessage(new IHasDirectoryStateMessage { + DirectoryRoot = _directory.DirectoryRoot, InitialPhonebookSyncComplete = true }); }