File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 4747#include "config/theme.h"
4848#include "plugins/plugins.h"
4949#include "ui/ui.h"
50+ #include "ui/window.h"
5051#include "ui/window_list.h"
5152#include "xmpp/xmpp.h"
5253#include "xmpp/roster_list.h"
@@ -885,6 +886,12 @@ wins_lost_connection(void)
885886 ProfWin * window = curr -> data ;
886887 if (window -> type != WIN_CONSOLE ) {
887888 win_println (window , THEME_ERROR , "-" , "Lost connection." );
889+ ProfBuffEntry * first_message = buffer_size (window -> layout -> buffer ) != 0 ? buffer_get_entry (window -> layout -> buffer , 0 ) : NULL ;
890+ gboolean is_fetching_mam = first_message && (first_message -> theme_item == THEME_ROOMINFO && g_strcmp0 (first_message -> message , LOADING_MESSAGE ) == 0 );
891+
892+ if (is_fetching_mam ) {
893+ buffer_remove_entry (window -> layout -> buffer , 0 );
894+ }
888895
889896 // if current win, set current_win_dirty
890897 if (wins_is_current (window )) {
You can’t perform that action at this time.
0 commit comments