we often use .sharepoint.com/_layouts/15/UserPhotos.aspx within our apps, since loading seems to be more performant than using the 365-Users connector.
Everything is working fine, when we run the app in a browser. Regardless, if we open the app directly or integrated as a MS Teams tab (MS Teams web version).
But when we use the MS Teams client application, the user photos are not displayed, using the SharePoint url method.
We figured out, that the image urls are working, when we add a SharePoint Site as a tab. After the user has opened this SharePoint-Site tab within Teams, the user photos start working in the app hosted as MS Teams tab. Even after closing and reopening the MS Teams application.
Does anyone have an idea or a solution how to make the SharePoint user photos url work out of the box when APP is integrated as MS Teams tab?
EDIT: Same problem seems to occur in web/browser, if a user did not access this SharePoint Site before ...