Commit efc0634d authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

ma-chat: Don't warn if room name not found

It's common and valid to not have name for a room,
So don't warn in that cases
parent 1154567b
Pipeline #72403 passed with stages
in 8 minutes and 30 seconds
......@@ -1053,7 +1053,8 @@ get_room_name_cb (GObject *obj,
object = matrix_api_get_room_name_finish (self->matrix_api, result, &error);
if (error) {
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
!g_error_matches (error, MATRIX_ERROR, M_NOT_FOUND))
g_warning ("error getting room name: %s", error->message);
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