This commit is contained in:
Andrea Cavalli 2022-01-21 19:54:53 +01:00
parent e1fee1f90d
commit d4615b2cb4
6 changed files with 6 additions and 6 deletions

View File

@ -135,7 +135,7 @@ public abstract class ReactiveApiPublisher {
var publishedResultingEvents = telegramClient
.subscribeOn(Schedulers.parallel())
// Handle signals, then return a ResultingEvent
.flatMapIterable(this::onSignal)
.concatMapIterable(this::onSignal)
.doFinally(s -> LOG.trace("Finalized telegram client events"))
// Transform resulting events using all the registered resulting event transformers

View File

@ -34,7 +34,7 @@ public class DefaultOptions implements ResultingEventTransformer {
@Override
public Flux<ResultingEvent> transform(boolean isBot, Flux<ResultingEvent> events) {
return events.flatMapIterable(event -> {
return events.concatMapIterable(event -> {
// Append the options if the initial auth state is intercepted
if (event instanceof ClientBoundResultingEvent clientBoundResultingEvent

View File

@ -11,7 +11,7 @@ public class DisableChatDatabase implements ResultingEventTransformer {
@Override
public Flux<ResultingEvent> transform(boolean isBot, Flux<ResultingEvent> events) {
return events.flatMapIterable(event -> {
return events.concatMapIterable(event -> {
// Change option
if (event instanceof TDLibBoundResultingEvent tdLibBoundResultingEvent

View File

@ -11,7 +11,7 @@ public class DisableFileDatabase implements ResultingEventTransformer {
@Override
public Flux<ResultingEvent> transform(boolean isBot, Flux<ResultingEvent> events) {
return events.flatMapIterable(event -> {
return events.concatMapIterable(event -> {
// Change option
if (event instanceof TDLibBoundResultingEvent tdLibBoundResultingEvent

View File

@ -11,7 +11,7 @@ public class DisableMessageDatabase implements ResultingEventTransformer {
@Override
public Flux<ResultingEvent> transform(boolean isBot, Flux<ResultingEvent> events) {
return events.flatMapIterable(event -> {
return events.concatMapIterable(event -> {
// Change option
if (event instanceof TDLibBoundResultingEvent tdLibBoundResultingEvent

View File

@ -29,7 +29,7 @@ public class TdlightDefaultOptions implements ResultingEventTransformer {
@Override
public Flux<ResultingEvent> transform(boolean isBot, Flux<ResultingEvent> events) {
return events.flatMapIterable(event -> {
return events.concatMapIterable(event -> {
// Append the options if the initial auth state is intercepted
if (event instanceof ClientBoundResultingEvent clientBoundResultingEvent