This commit is contained in:
Paul Schaub 2019-12-22 02:58:58 +01:00
parent 4491df0dd3
commit 875321ed00
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -75,8 +75,7 @@ public class XmppGroupChatRepository
@Override
public Single<GroupChat> getOrCreateGroupChat(Account account, String roomAddress) {
return getGroupChatByRoomAddress(account, roomAddress)
.switchIfEmpty(
Single.just(new IGroupChat())
.switchIfEmpty(Single.just(new IGroupChat())
.map(chat -> {
chat.setAccount(account);
chat.setRoomAddress(roomAddress);