write text to channel when message is sent by the user

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-01-29 10:50:30 -05:00
parent 1c030bb1aa
commit 1d4a315083
1 changed files with 4 additions and 3 deletions

View File

@ -153,14 +153,15 @@ _cb_entry_go(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
if ((txt = elm_entry_markup_to_utf8(txt)))
{
char buff[PATH_MAX];
const char *nick;
snprintf(buff, sizeof(buff), "%s\r\n", txt);
express_network_channel_priv_send(chl->net, chl->name, buff);
elm_entry_entry_set(chl->o_entry, "");
nick = express_network_nickname_get(chl->net);
_channel_text_append(chl, nick, buff);
/* TODO */
/* _channel_text_append(chl, buff, txt); */
elm_entry_entry_set(chl->o_entry, "");
}
}
}