From 12aedfadfd9c7805bb7138f64695858b6ceca62c Mon Sep 17 00:00:00 2001 From: default Date: Sun, 5 Feb 2023 13:35:50 +0100 Subject: New function timeline_get(). --- data.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'data.c') diff --git a/data.c b/data.c index a5f46e8..0f2bd39 100644 --- a/data.c +++ b/data.c @@ -824,6 +824,13 @@ double timeline_mtime(snac *snac) } +int timeline_get(snac *snac, const char *id, xs_dict **msg) +/* gets a message from the timeline */ +{ + return object_get_by_md5(id, msg, NULL); +} + + int timeline_del(snac *snac, char *id) /* deletes a message from the timeline */ { -- cgit v1.2.3