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

Commit f42fc99

Browse files
authored
Merge pull request #453 from fredrikluo/remove-unnecessary-filtering
Remove the unnecessary filtering, the bot itself has been filtered out already in ActivityHandler.java
2 parents 45ad1e0 + 0e78e21 commit f42fc99

File tree

1 file changed

+0
-5
lines changed
  • samples/16.proactive-messages/src/main/java/com/microsoft/bot/sample/proactive

1 file changed

+0
-5
lines changed

samples/16.proactive-messages/src/main/java/com/microsoft/bot/sample/proactive/ProactiveBot.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.microsoft.bot.schema.Activity;
1111
import com.microsoft.bot.schema.ChannelAccount;
1212
import com.microsoft.bot.schema.ConversationReference;
13-
import org.apache.commons.lang3.StringUtils;
1413
import org.springframework.beans.factory.annotation.Value;
1514
import org.springframework.stereotype.Component;
1615

@@ -58,10 +57,6 @@ protected CompletableFuture<Void> onMembersAdded(
5857
TurnContext turnContext
5958
) {
6059
return membersAdded.stream()
61-
.filter(
62-
member -> !StringUtils
63-
.equals(member.getId(), turnContext.getActivity().getRecipient().getId())
64-
)
6560
.map(
6661
channel -> turnContext
6762
.sendActivity(MessageFactory.text(String.format(WELCOMEMESSAGE, port)))

0 commit comments

Comments
 (0)