mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: update directory contacts and enhance directory messaging to include current root directory
This commit is contained in:
parent
f3f7755735
commit
7de2aa7c2e
2 changed files with 18 additions and 12 deletions
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue