Commit 3526ee9d authored by Mohammed Sadiq's avatar Mohammed Sadiq

window: Show matrix chats

parent 8b66eff7
Pipeline #62482 failed with stages
in 17 seconds
......@@ -286,14 +286,16 @@ static gboolean
window_chat_name_matches (ChattyItem *item,
ChattyWindow *self)
{
ChattyProtocol protocols;
ChattyProtocol protocols, protocol;
g_assert (CHATTY_IS_CHAT (item));
g_assert (CHATTY_IS_WINDOW (self));
protocols = chatty_manager_get_active_protocols (self->manager);
protocol = chatty_item_get_protocols (item);
if (!(protocols & chatty_item_get_protocols (item)))
if (protocol != CHATTY_PROTOCOL_MATRIX &&
!(protocols & chatty_item_get_protocols (item)))
return FALSE;
/* FIXME: Not a good idea */
......@@ -310,7 +312,8 @@ window_chat_name_matches (ChattyItem *item,
return FALSE;
}
if (hdy_leaflet_get_folded (HDY_LEAFLET (self->header_box))) {
if (protocol != CHATTY_PROTOCOL_MATRIX &&
hdy_leaflet_get_folded (HDY_LEAFLET (self->header_box))) {
GListModel *message_list;
guint n_items;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment