mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Tweak ActiveCallBar
This commit is contained in:
parent
88cfa3a8fa
commit
55783c6fe5
1 changed files with 2 additions and 3 deletions
|
@ -109,7 +109,7 @@ ActiveCallBar::setCallParty(
|
||||||
const QString &roomName,
|
const QString &roomName,
|
||||||
const QString &avatarUrl)
|
const QString &avatarUrl)
|
||||||
{
|
{
|
||||||
callPartyLabel_->setText(
|
callPartyLabel_->setText(" " +
|
||||||
(displayName.isEmpty() ? userid : displayName) + " -");
|
(displayName.isEmpty() ? userid : displayName) + " -");
|
||||||
|
|
||||||
if (!avatarUrl.isEmpty())
|
if (!avatarUrl.isEmpty())
|
||||||
|
@ -137,10 +137,9 @@ ActiveCallBar::update(WebRTCSession::State state)
|
||||||
case WebRTCSession::State::CONNECTED:
|
case WebRTCSession::State::CONNECTED:
|
||||||
callStartTime_ = QDateTime::currentSecsSinceEpoch();
|
callStartTime_ = QDateTime::currentSecsSinceEpoch();
|
||||||
timer_->start(1000);
|
timer_->start(1000);
|
||||||
stateLabel_->setText("Active call:");
|
stateLabel_->setText("Voice call:");
|
||||||
durationLabel_->setText("00:00");
|
durationLabel_->setText("00:00");
|
||||||
durationLabel_->show();
|
durationLabel_->show();
|
||||||
muteBtn_->show();
|
|
||||||
break;
|
break;
|
||||||
case WebRTCSession::State::DISCONNECTED:
|
case WebRTCSession::State::DISCONNECTED:
|
||||||
timer_->stop();
|
timer_->stop();
|
||||||
|
|
Loading…
Reference in a new issue