mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Don't use icons as room avatars
This commit is contained in:
parent
9092ae3db8
commit
718562737c
2 changed files with 2 additions and 3 deletions
|
@ -192,8 +192,7 @@ void ChatPage::updateTopBarAvatar(const QString &roomid, const QPixmap &img)
|
||||||
if (current_room_.id() != roomid)
|
if (current_room_.id() != roomid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QIcon icon(img);
|
top_bar_->updateRoomAvatar(img.toImage());
|
||||||
this->top_bar_->updateRoomAvatar(icon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatPage::updateOwnProfileInfo(const QUrl &avatar_url, const QString &display_name)
|
void ChatPage::updateOwnProfileInfo(const QUrl &avatar_url, const QString &display_name)
|
||||||
|
|
|
@ -66,7 +66,7 @@ TextInputWidget::TextInputWidget(QWidget *parent)
|
||||||
|
|
||||||
void TextInputWidget::onSendButtonClicked()
|
void TextInputWidget::onSendButtonClicked()
|
||||||
{
|
{
|
||||||
auto msg_text = input_->text();
|
auto msg_text = input_->text().trimmed();
|
||||||
|
|
||||||
if (msg_text.isEmpty())
|
if (msg_text.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue