Skip to content

Commit

Permalink
fix empty group update messages
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
mcginty committed Feb 6, 2015
1 parent d586893 commit 8f3f2e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/thoughtcrime/securesms/util/GroupUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ public static String getDescription(Context context, String encodedGroup) {
description.append(context.getString(R.string.GroupUtil_title_is_now, title));
}

return description.toString();
if (description.length() > 0) {
return description.toString();
} else {
return context.getString(R.string.GroupUtil_group_updated);
}
} catch (InvalidProtocolBufferException e) {
Log.w("GroupUtil", e);
return context.getString(R.string.GroupUtil_group_updated);
Expand Down

0 comments on commit 8f3f2e6

Please sign in to comment.