summaryrefslogtreecommitdiff
path: root/src/message.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-12-17 18:01:01 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2023-12-18 21:38:53 +0100
commitfb65f6a6e802e5bb9ec80d0e91177a35a206e7a1 (patch)
tree3ea73b2f0c30356e69c62179d91f225c9f934ac4 /src/message.h
parent0bcef826baaa6a335d8fddafdbebd00fbf421c2c (diff)
Message: use ready state before sending messages
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/message.h b/src/message.h
index 4e99cd1..f729700 100644
--- a/src/message.h
+++ b/src/message.h
@@ -53,9 +53,10 @@ struct DirectMessageState
vector<Stored<DirectMessageState>> prev;
optional<Identity> peer;
- vector<Stored<DirectMessageData>> sent;
- vector<Stored<DirectMessageData>> received;
- vector<Stored<DirectMessageData>> seen;
+ vector<Stored<DirectMessageData>> ready {};
+ vector<Stored<DirectMessageData>> sent {};
+ vector<Stored<DirectMessageData>> received {};
+ vector<Stored<DirectMessageData>> seen {};
};
}