aboutsummaryrefslogtreecommitdiff
path: root/src/Channel.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-01 13:58:29 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-01 13:58:33 +0200
commit98bf43608e1187b164481d83501226d897e77d57 (patch)
tree507532093b5b3cf96dc27f43ef5f7e909f934402 /src/Channel.cpp
parent431c1dcded16649c10331b9dc4e57f20067cea0b (diff)
Add command to get join key, fix crash when joining channel
Diffstat (limited to 'src/Channel.cpp')
-rw-r--r--src/Channel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Channel.cpp b/src/Channel.cpp
index b922833..f403984 100644
--- a/src/Channel.cpp
+++ b/src/Channel.cpp
@@ -100,9 +100,9 @@ namespace dchat
return nullptr;
}
- std::shared_ptr<odhtdb::Hash> Channel::getId()
+ const odhtdb::DatabaseNode& Channel::getNodeInfo() const
{
- return databaseNodeInfo.getRequestHash();
+ return databaseNodeInfo;
}
void Channel::addLocalMessage(const std::string &msg, User *owner, u64 timestampSeconds)