parent
2054aad975
commit
553a97c8bb
12 changed files with 412 additions and 0 deletions
|
|
@ -158,6 +158,12 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client,
|
|||
typingDisplay_->setUsers(users);
|
||||
});
|
||||
connect(room_list_, &RoomList::roomChanged, text_input_, &TextInputWidget::stopTyping);
|
||||
connect(room_list_, &RoomList::roomChanged, text_input_, [this](const QString &room_id) {
|
||||
if (roomStates_.find(room_id) != roomStates_.end())
|
||||
text_input_->setRoomState(roomStates_[room_id]);
|
||||
else
|
||||
qWarning() << "no state found for room_id" << room_id;
|
||||
});
|
||||
|
||||
connect(room_list_, &RoomList::roomChanged, this, &ChatPage::changeTopRoomInfo);
|
||||
connect(room_list_, &RoomList::roomChanged, text_input_, &TextInputWidget::focusLineEdit);
|
||||
|
|
@ -781,6 +787,11 @@ ChatPage::updateTypingUsers(const QString &roomid, const std::vector<std::string
|
|||
if (!userSettings_->isTypingNotificationsEnabled())
|
||||
return;
|
||||
|
||||
if (user_ids.empty()) {
|
||||
typingUsers_[roomid] = {};
|
||||
return;
|
||||
}
|
||||
|
||||
QStringList users;
|
||||
|
||||
QSettings settings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue