Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325648
matrix-helpers.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
838 B
Referenced Files
None
Subscribers
None
matrix-helpers.js
View Options
function
roomAvatarPlaceholderName
(
room
)
{
return
room
.
name
||
room
.
heroNames
[
0
]
||
room
.
roomId
;
}
function
roomNameOrHeroes
(
room
,
l10n
)
{
if
(
room
.
name
)
{
return
l10n
.
get
(
'room-list-view-room-item-title-name'
,
{
name
:
room
.
name
,
}
);
}
else
if
(
room
.
heroNames
.
length
)
{
return
l10n
.
get
(
'room-list-view-room-item-title-heroes'
,
{
hero
:
room
.
heroNames
[
0
],
secondHero
:
room
.
heroNames
[
1
],
otherNum
:
room
.
heroNames
.
length
-
1
,
}
);
}
else
{
return
l10n
.
get
(
'room-list-view-room-item-title-id'
,
{
roomId
:
room
.
roomId
,
}
);
}
}
function
userNameWithId
(
user
,
l10n
)
{
if
(
user
.
name
)
{
return
l10n
.
get
(
'user-name-with-id'
,
{
name
:
user
.
name
,
userId
:
user
.
userId
});
}
else
{
return
user
.
userId
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:19 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
91963
Default Alt Text
matrix-helpers.js (838 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment