Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114547
TypingIndicator.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
931 B
Referenced Files
None
Subscribers
None
TypingIndicator.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 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
'.'
as
Kazv
import
'matrix-helpers.js'
as
Helpers
Label
{
id: typingIndicator
property
var
typingUsers:
null
property
var
count:
typingUsers
?
typingUsers.count :
0
property
var
firstTypingUser:
typingUsers
&&
typingUsers
.
at
(
0
)
property
var
secondTypingUser:
typingUsers
&&
typingUsers
.
at
(
1
)
property
var
nameProvider:
Kazv
.
UserNameProvider
{}
visible:
count
text:
getText
()
function
getName
(
user
)
{
return
nameProvider
.
getName
(
user
);
}
function
getText
()
{
console
.
log
(
'getText'
,
count
);
return
l10n
.
get
(
'typing-indicator'
,
{
otherNum:
count
-
1
,
typingUser:
getName
(
firstTypingUser
),
secondTypingUser:
getName
(
secondTypingUser
),
})
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 11:16 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40282
Default Alt Text
TypingIndicator.qml (931 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment