static void tgp_msg_on_loaded_chat_full (struct tgl_state *TLS, void *extra, int success, struct tgl_chat *chat) { debug ("tgp_msg_on_loaded_chat_full()"); assert (success); tgp_chat_on_loaded_chat_full (TLS, chat); struct tgp_msg_loading *C = extra; -- C->pending; tgp_msg_process_in_ready (TLS); }
static void tgp_msg_on_loaded_chat_full (struct tgl_state *TLS, void *extra, int success, struct tgl_chat *chat) { debug ("tgp_msg_on_loaded_chat_full()"); tgp_chat_on_loaded_chat_full (TLS, chat); struct tgp_msg_loading *C = extra; if (! success) { // foreign user's names won't be displayed in the user list g_warn_if_reached(); } -- C->pending; tgp_msg_process_in_ready (TLS); }
static void tgp_chat_on_loaded_chat_full_joining (struct tgl_state *TLS, void *_, int success, struct tgl_chat *C) { debug ("tgp_chat_on_loaded_chat_full_joining()"); if (! success) { tgp_notify_on_error_gw (TLS, NULL, success); return; } tgp_chat_on_loaded_chat_full (TLS, C); tgp_chat_show (TLS, C); // Check if the users attempts to join an empty chat if (! C->user_list_size) { p2tgl_got_chat_in (TLS, C->id, C->id, _("You have already left this chat."), PURPLE_MESSAGE_SYSTEM, time (NULL)); } }