summaryrefslogtreecommitdiff
path: root/src/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/message.h b/src/message.h
index c3c6ba4..4e99cd1 100644
--- a/src/message.h
+++ b/src/message.h
@@ -37,10 +37,6 @@ struct DirectMessageThread::Priv
{
const Identity peer;
const vector<Stored<DirectMessageData>> head;
-
- static DirectMessageThread getThreadLocked(const Identity & peer);
- static DirectMessageThread updateThreadLocked(const Identity & peer,
- vector<Stored<DirectMessageData>> && head);
};
struct DirectMessageThread::Iterator::Priv
@@ -49,4 +45,17 @@ struct DirectMessageThread::Iterator::Priv
vector<Stored<DirectMessageData>> next;
};
+struct DirectMessageState
+{
+ static DirectMessageState load(const Ref &);
+ Ref store(const Storage &) const;
+
+ vector<Stored<DirectMessageState>> prev;
+ optional<Identity> peer;
+
+ vector<Stored<DirectMessageData>> sent;
+ vector<Stored<DirectMessageData>> received;
+ vector<Stored<DirectMessageData>> seen;
+};
+
}