Allow removing avatars

This commit is contained in:
M66B
2018-11-29 10:45:58 +01:00
parent 5677c283e3
commit d71bddf958
2 changed files with 6 additions and 5 deletions

View File

@@ -202,6 +202,8 @@ public class EntityMessage implements Serializable {
void getAvatar(Context context) {
if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_CONTACTS)
== PackageManager.PERMISSION_GRANTED) {
this.avatar = null;
try {
if (this.from != null)
for (int i = 0; i < this.from.length; i++) {