Broken by https://review.jami.net/c/jami-client-qt/+/26560. This moves some logic that has been previously duplicated between the app and tests into a common routine. Change-Id: I40f1af38893cfcef751578d3e4db7d7ba040505b