Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abd57858 authored by Stéphane BAUSSERON's avatar Stéphane BAUSSERON
Browse files

Remove unused variable MessageListFragment.mLastMessageId to prevent from...

Remove unused variable MessageListFragment.mLastMessageId to prevent from confusing with mLastMessageId of the observer
parent 00430de1
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -134,7 +134,6 @@ public class MessageListFragment extends QKFragment implements ActivityLauncher,
    // If the value >= 0, then we jump to that line. If the
    // value is maxint, then we jump to the end.

    private long mLastMessageId;
    private BackgroundQueryHandler mBackgroundQueryHandler;

    private long mThreadId;
@@ -949,10 +948,6 @@ public class MessageListFragment extends QKFragment implements ActivityLauncher,
                    mConversation.setMessageCount(0);
                    // fall through
                case DELETE_MESSAGE_TOKEN:
                    if (cookie instanceof Boolean && ((Boolean) cookie).booleanValue()) {
                        // If we just deleted the last message, reset the saved id.
                        mLastMessageId = 0;
                    }

                    // Update the notification for new messages since they may be deleted.
                    NotificationManager.update(mContext);