aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-07-11 15:32:51 +0100
committerGitHub <noreply@github.com>2016-07-11 15:32:51 +0100
commit6c474731094b3f214b053fbfc3ff85f48a6f850c (patch)
tree2898c537f81a6435ef59a3774fb5ecde125c2bb3
parent302c15abfcc45be0a27e56b377205729949fc1e5 (diff)
parent855f90e7ed29da4f282d0c4fc3be0797d40a86c9 (diff)
downloadpurple-matrix-6c474731094b3f214b053fbfc3ff85f48a6f850c.tar.gz
Merge pull request #11 from penguin42/empty-room-name
Ignore empty m.room.name
-rw-r--r--matrix-statetable.c2
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);
}
}