public ContactsViewModel(IForegroundUpdateService foregroundUpdateService,
Func<ConversationViewModel> contactFactory, CoreDispatcher uiDispatcher) :base(uiDispatcher)
{
_contactFactory = contactFactory;
foregroundUpdateService.OnPeerDataUpdated += OnPeerDataUpdated;
foregroundUpdateService.GetShownUser += ForegroundUpdateService_GetShownUser;
foregroundUpdateService.OnVoipStateUpdate += OnVoipStateUpdate;
OnPeerDataUpdated();
LayoutService.Instance.LayoutChanged += LayoutChanged;
LayoutChanged(LayoutService.Instance.LayoutType);
ShowSettings = new DelegateCommand(() => OnShowSettings?.Invoke());
}