Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / shared / get-profile-url-from-virtual-user.js
blob5d794c36c8ecc254521861b02f235a4e316763ea
1 'use strict';
3 function getProfileUrlFromVirtualUser(virtualUser) {
4 if (virtualUser.type === 'matrix') {
5 return `https://matrix.to/#/@${virtualUser.externalId}?utm_source=gitter`;
8 return null;
11 module.exports = getProfileUrlFromVirtualUser;