summary refs log tree commit diff
path: root/include/ChatPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ChatPage.h')
-rw-r--r--include/ChatPage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ChatPage.h b/include/ChatPage.h

index 8becc17f..8332225b 100644 --- a/include/ChatPage.h +++ b/include/ChatPage.h
@@ -31,6 +31,7 @@ #include "TextInputWidget.h" #include "TimelineViewManager.h" #include "TopRoomBar.h" +#include "TypingDisplay.h" #include "UserInfoWidget.h" class ChatPage : public QWidget @@ -68,6 +69,7 @@ protected: void keyPressEvent(QKeyEvent *event) override; private: + void updateTypingUsers(const QString &roomid, const QList<QString> &user_ids); void updateDisplayNames(const RoomState &state); void loadStateFromCache(); void showQuickSwitcher(); @@ -92,6 +94,7 @@ private: TopRoomBar *top_bar_; TextInputWidget *text_input_; + TypingDisplay *typingDisplay_; QTimer *sync_timer_; int sync_interval_; @@ -104,6 +107,9 @@ private: QMap<QString, RoomState> state_manager_; QMap<QString, QSharedPointer<RoomSettings>> settingsManager_; + // Keeps track of the users currently typing on each room. + QMap<QString, QList<QString>> typingUsers_; + QuickSwitcher *quickSwitcher_ = nullptr; OverlayModal *quickSwitcherModal_ = nullptr;