handle THREAD_CREATE

also fix compilation
also change channel_create signal to emit ChannelData
This commit is contained in:
ouwou
2021-07-28 03:34:36 -04:00
parent 9d2d13a389
commit 014e176e0a
8 changed files with 99 additions and 29 deletions

View File

@@ -472,3 +472,7 @@ void to_json(nlohmann::json &j, const FriendRequestObject &m) {
void to_json(nlohmann::json &j, const PutRelationshipObject &m) {
JS_IF("type", m.Type);
}
void from_json(const nlohmann::json &j, ThreadCreateData &m) {
j.get_to(m.Channel);
}