diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -22,6 +22,8 @@ void data_add_roster_item(const char* jid, const char* subscription,  	// initialize chat  	chat->messages = NULL; +	chat->jid = malloc(sizeof(char)*strlen(jid)); +	strcpy(chat->jid, jid);  	gui_add_chat_widget(chat);  	// initialize roster item @@ -63,6 +65,7 @@ void data_add_roster_item(const char* jid, const char* subscription,  void data_add_incoming_message(const char* sender_jid, const char* content) { +	// TODO rework based on chat->jid  	// find correct chat  	chat_t* chat = NULL;  	roster_item_t* i; @@ -95,4 +98,7 @@ void data_add_incoming_message(const char* sender_jid, const char* content) {  	// append message to chat  	m = msg; +	// TODO could be more correct to update chat->jid to full JID of just +	// received message so that future responses go to this ressource +  } | 
