Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Remove the unnecessary filtering, the bot itself has been filtered out already in ActivityHandler.java #453

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.microsoft.bot.schema.Activity;
import com.microsoft.bot.schema.ChannelAccount;
import com.microsoft.bot.schema.ConversationReference;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

Expand Down Expand Up @@ -58,10 +57,6 @@ protected CompletableFuture<Void> onMembersAdded(
TurnContext turnContext
) {
return membersAdded.stream()
.filter(
member -> !StringUtils
.equals(member.getId(), turnContext.getActivity().getRecipient().getId())
)
.map(
channel -> turnContext
.sendActivity(MessageFactory.text(String.format(WELCOMEMESSAGE, port)))
Expand Down