diff --git a/request/slack-request-channels-list.c b/request/slack-request-channels-list.c index 96e5f53..9fb90aa 100644 --- a/request/slack-request-channels-list.c +++ b/request/slack-request-channels-list.c @@ -222,7 +222,6 @@ static int callback_http(struct lws *wsi, enum lws_callback_reasons reason, new_channel->is_member = json_object_get_boolean(is_member); } - /* topic = json_object_object_get(channel, "topic"); if (json_valid(topic, request->workspace)) { @@ -264,7 +263,6 @@ static int callback_http(struct lws *wsi, enum lws_callback_reasons reason, json_object_get_int(sub_last_set) : 0); } - */ is_archived = json_object_object_get(response, "is_archived"); if (json_valid(is_archived, request->workspace)) diff --git a/slack-channel.h b/slack-channel.h index 4c94511..2e2d08f 100644 --- a/slack-channel.h +++ b/slack-channel.h @@ -15,7 +15,7 @@ struct t_slack_channel_typing { char *id; char *name; - time_t ts; + long ts; struct t_slack_channel_typing *prev_typing; struct t_slack_channel_typing *next_typing; @@ -33,14 +33,14 @@ struct t_slack_channel_topic { char *value; char *creator; - time_t last_set; + long last_set; }; struct t_slack_channel_purpose { char *value; char *creator; - time_t last_set; + long last_set; }; struct t_slack_channel @@ -48,7 +48,7 @@ struct t_slack_channel enum t_slack_channel_type type; char *id; char *name; - time_t created; + int created; /* channel */ int is_general;