fixed concurrent modification when displaying read markers

This commit is contained in:
Daniel Gultsch 2020-06-14 19:09:55 +02:00
parent 1f77d5e115
commit 20286ea8d2
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import android.text.SpannableStringBuilder;
import android.util.Log; import android.util.Log;
import com.google.common.base.Strings; import com.google.common.base.Strings;
import com.google.common.collect.ImmutableSet;
import org.json.JSONException; import org.json.JSONException;
@ -534,7 +535,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
} }
public Set<ReadByMarker> getReadByMarkers() { public Set<ReadByMarker> getReadByMarkers() {
return Collections.unmodifiableSet(this.readByMarkers); return ImmutableSet.copyOf(this.readByMarkers);
} }
boolean similar(Message message) { boolean similar(Message message) {