5180 fichiers 38.5 Mo 0 téléchargements 582 vues mis à jour il y a 8 heures ui
friendsListActions.helpers.ts 828 o Télécharger le fichier
import { MessengerFriend } from '../../../../../api';
import { isStaffChatIdentity } from '../../../staffChatIdentity';

/** AIR refreshFriendEntry: follow shows when the friend allows following (only sent for an online friend). */
export const canFollowFriendListEntry = (friend: Pick<MessengerFriend, 'id' | 'name' | 'online' | 'followingAllowed'>) =>
    friend.online && friend.followingAllowed && friend.id > 0 && !isStaffChatIdentity(friend);

/** AIR refreshFriendEntry: chat shows for an online friend, or an offline one who can get stored messages. */
export const canChatWithFriendListEntry = (
    friend: Pick<MessengerFriend, 'online' | 'persistedMessageUser' | 'pocketHabboUser'>,
    messagesPersisted: boolean
) => friend.online || (messagesPersisted && (friend.persistedMessageUser || friend.pocketHabboUser));
15Sujets
1Dépôts
20Membres
4En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser