Skip to content

Commit

Permalink
temporary workaround for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Mar 25, 2017
1 parent 78e9977 commit 245e15d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public abstract class ChatFragment extends ButteryFragment implements SlackMessa
private Pool pagePool, sendingPool;
private Map<String, Boolean> pages;
private boolean isRegistered;
private String timestamp;

@Nullable
@Override
Expand Down Expand Up @@ -199,7 +200,8 @@ final void onPageLoaded(String timestamp, final List<ItemData> messages) {

@Override
public void onEvent(final SlackMessagePosted event, SlackSession session) {
if (isMessageInChannel(event)) {
if (isMessageInChannel(event) && !event.getTimestamp().equals(timestamp)) {
timestamp = event.getTimestamp();
handler.post(new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit 245e15d

Please sign in to comment.