Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114543
UserNameProvider.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
707 B
Referenced Files
None
Subscribers
None
UserNameProvider.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Controls
2.15
import
'matrix-helpers.js'
as
Helpers
QtObject
{
property
var
user
property
var
overridedName:
getOverridedName
(
user
)
property
var
name:
getName
(
user
)
function
getName
(
u
)
{
if
(
!
u
)
{
return
''
;
}
return
Helpers
.
userDisplayName
(
u
.
name
,
u
.
userId
,
sdkVars
.
userGivenNicknameMap
.
map
,
l10n
,
);
}
function
getOverridedName
(
u
)
{
if
(
!
u
)
{
return
''
;
}
return
sdkVars
.
userGivenNicknameMap
.
map
[
u
.
userId
]
||
''
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 11:07 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40280
Default Alt Text
UserNameProvider.qml (707 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment