summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
authorCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-01 17:47:10 +0530
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-30 22:10:27 +0530
commitac1fbbb69fdd4e313072cbf95eb9288db1257a9d (patch)
tree6050f215caf7104d4e1cea5c6ba1ff53c0b477e2 /src/Cache_p.h
parent[WIP] Add Caching for users (diff)
downloadnheko-ac1fbbb69fdd4e313072cbf95eb9288db1257a9d.tar.xz
Some issue with UserProfile
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r--src/Cache_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h
index cf4416ce..60fa930f 100644
--- a/src/Cache_p.h
+++ b/src/Cache_p.h
@@ -55,12 +55,12 @@ public:
         std::string statusMessage(const std::string &user_id);
 
         // user cache stores user keys
-        UserCache getUserCache(const std::string &user_id);
+        std::optional<UserCache> getUserCache(const std::string &user_id);
         int setUserCache(const std::string &user_id, const UserCache &body);
         int deleteUserCache(const std::string &user_id);
 
         // device verified cache
-        DeviceVerifiedCache getVerifiedCache(const std::string &user_id);
+        std::optional<DeviceVerifiedCache> getVerifiedCache(const std::string &user_id);
         int setVerifiedCache(const std::string &user_id, const DeviceVerifiedCache &body);
 
         static void removeDisplayName(const QString &room_id, const QString &user_id);