mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-26 05:24:50 +02:00
Fix generic type in RosterRepository
This commit is contained in:
parent
90623b2cba
commit
c22f9a8fe2
|
@ -27,7 +27,7 @@ public class IRosterRepository extends RosterRepository<RoomEntityModel, RoomCon
|
|||
private final EntityDao entityDao;
|
||||
|
||||
@Override
|
||||
public Observable getContact(long accountId, EntityBareJid jid) {
|
||||
public Observable<RoomContactModel> getContact(long accountId, EntityBareJid jid) {
|
||||
return contactDao.getContactByJid(accountId, jid);
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ public abstract class RosterRepository<E extends EntityModel, C extends ContactM
|
|||
*/
|
||||
public abstract Maybe<C> maybeGetContact(long id);
|
||||
|
||||
public abstract Observable getContact(long accountId, EntityBareJid jid);
|
||||
public abstract Observable<C> getContact(long accountId, EntityBareJid jid);
|
||||
|
||||
public Maybe<C> maybeGetContact(long accountId, EntityBareJid jid) {
|
||||
return getEntityForAccountAndJid(accountId, jid).flatMap(this::getContactForEntity);
|
||||
|
|
Loading…
Reference in a new issue