this commit is in an unspecified state

This commit is contained in:
Tony Olagbaiye 2018-05-06 15:51:07 +01:00
parent c94091bdff
commit 614a7d5b5b
2 changed files with 4 additions and 6 deletions

View File

@ -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); new_channel->is_member = json_object_get_boolean(is_member);
} }
/*
topic = json_object_object_get(channel, "topic"); topic = json_object_object_get(channel, "topic");
if (json_valid(topic, request->workspace)) 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) : json_object_get_int(sub_last_set) :
0); 0);
} }
*/
is_archived = json_object_object_get(response, "is_archived"); is_archived = json_object_object_get(response, "is_archived");
if (json_valid(is_archived, request->workspace)) if (json_valid(is_archived, request->workspace))

View File

@ -15,7 +15,7 @@ struct t_slack_channel_typing
{ {
char *id; char *id;
char *name; char *name;
time_t ts; long ts;
struct t_slack_channel_typing *prev_typing; struct t_slack_channel_typing *prev_typing;
struct t_slack_channel_typing *next_typing; struct t_slack_channel_typing *next_typing;
@ -33,14 +33,14 @@ struct t_slack_channel_topic
{ {
char *value; char *value;
char *creator; char *creator;
time_t last_set; long last_set;
}; };
struct t_slack_channel_purpose struct t_slack_channel_purpose
{ {
char *value; char *value;
char *creator; char *creator;
time_t last_set; long last_set;
}; };
struct t_slack_channel struct t_slack_channel
@ -48,7 +48,7 @@ struct t_slack_channel
enum t_slack_channel_type type; enum t_slack_channel_type type;
char *id; char *id;
char *name; char *name;
time_t created; int created;
/* channel */ /* channel */
int is_general; int is_general;