diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2016-07-11 15:32:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 15:32:51 +0100 |
commit | 6c474731094b3f214b053fbfc3ff85f48a6f850c (patch) | |
tree | 2898c537f81a6435ef59a3774fb5ecde125c2bb3 | |
parent | 302c15abfcc45be0a27e56b377205729949fc1e5 (diff) | |
parent | 855f90e7ed29da4f282d0c4fc3be0797d40a86c9 (diff) | |
download | purple-matrix-6c474731094b3f214b053fbfc3ff85f48a6f850c.tar.gz |
Merge pull request #11 from penguin42/empty-room-name
Ignore empty m.room.name
-rw-r--r-- | matrix-statetable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-statetable.c b/matrix-statetable.c index 3d7edbe..8021645 100644 --- a/matrix-statetable.c +++ b/matrix-statetable.c @@ -129,7 +129,7 @@ gchar *matrix_statetable_get_room_alias(MatrixRoomStateEventTable *state_table) if(event != NULL) { tmpname = matrix_json_object_get_string_member( event->content, "name"); - if(tmpname != NULL) { + if(tmpname != NULL && tmpname[0] != '\0') { return g_strdup(tmpname); } } |