Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13320

DirectMessageConsumerHandler.java [4] pollConsume method calls Twitter.getDirectMessages(getLastIdPaging())

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      DirectMessageConsumerHandler.java [1] pollConsume method calls Twitter.getDirectMessages(getLastIdPaging()), the method is deprecated [2] and filters out the messages sent by the account [3]. The master version removed the getDirectMessages(Paging p) method and doesn't filter the messages. The fix is to call getDirectMessages(int count) instead.

      1. https://github.com/apache/camel/blob/master/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/directmessage/DirectMessageConsumerHandler.java#L39
      2. https://github.com/Twitter4J/Twitter4J/blob/4.0.7/twitter4j-core/src/main/java/twitter4j/api/DirectMessagesResources.java#L53
      3. https://github.com/Twitter4J/Twitter4J/blob/4.0.7/twitter4j-core/src/main/java/twitter4j/TwitterImpl.java#L422

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              claudio4j Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m