From 092965b583bd0c377ed5d9f2af0e0f4bb0548354 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 20 May 2025 18:33:14 +0800 Subject: internal: use uintptr_t of session instance for identification --- src/chatManager.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/chatManager.hpp') diff --git a/src/chatManager.hpp b/src/chatManager.hpp index 0f423f7..46b02de 100644 --- a/src/chatManager.hpp +++ b/src/chatManager.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -11,6 +12,7 @@ class CChatManager { struct SMessage { std::string msg; std::string username; + std::optional sender = std::nullopt; bool admin = false; }; void newMessage(const SMessage &msg); -- cgit v1.2.3