Update TransferServiceImpl.java and TransferUtils.java
This commit is contained in:
parent
52019d505a
commit
ed70a65608
@ -411,6 +411,10 @@ public class TransferServiceImpl implements TransferService {
|
||||
}
|
||||
)
|
||||
.last()
|
||||
.onErrorMap(error -> {
|
||||
error.printStackTrace();
|
||||
return new Exception("Error while obtaining source group members: " + error.getLocalizedMessage(), error);
|
||||
})
|
||||
.subscribeOn(Schedulers.boundedElastic())
|
||||
.map(members -> Tuple2.of(clients, members));
|
||||
})
|
||||
|
@ -210,7 +210,7 @@ public class TransferUtils {
|
||||
if (supergroupFullInfo.upgradedFromBasicGroupId == 0 && supergroupFullInfo.upgradedFromMaxMessageId == 0
|
||||
&& supergroupFullInfo.memberCount > 500) {
|
||||
TdApi.Chat info = client
|
||||
.<Chat>send(new TdApi.GetChat(supergroupId))
|
||||
.<Chat>send(new TdApi.GetChat(chatEntityIdToChatId(supergroupId, TChatType.SUPERGROUP)))
|
||||
.flatMap(MonoUtils::orElseThrow)
|
||||
.timeout(Duration.ofMinutes(2))
|
||||
.blockOptional()
|
||||
|
Loading…
Reference in New Issue
Block a user