Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't scroll up if there is a draff #1246

Closed
adbenitez opened this issue Dec 14, 2019 · 0 comments · Fixed by #1248
Closed

Can't scroll up if there is a draff #1246

adbenitez opened this issue Dec 14, 2019 · 0 comments · Fixed by #1248
Assignees
Labels
bug Something isn't working

Comments

@adbenitez
Copy link
Member

if I write something in the text area, then try to scroll up the message list, to read a previous message related to what I am writing, the app keeps moving the scroll to the bottom every second, making it impossible to scroll up, in the console I see constantly a repeated event that is calling messageList.setDraft():

2379.9s [D]main/ipc: EVENT_DC_DISPATCH:  messageList.setDraft [ 14, 'some text' ]
2380.2s [D]core/event: DC_EVENT_MSGS_CHANGED 14 0
2380.2s [D]main/deltachat: sendToRenderer: DC_EVENT_MSGS_CHANGED [ 14, 0 ]
2380.2s [D]main/deltachat: sendToRenderer: DD_EVENT_CHATLIST_CHANGED {}
2380.2s [D]main/deltachat: sendToRenderer: DD_EVENT_CHATLIST_ITEM_CHANGED { chatId: 14 }
2380.2s [D]main/deltachat: sendToRenderer: DD_EVENT_CHAT_MODIFIED { chatId: 14,
  chat:
   { id: 14,
     name: 'SimpleBot🤖',
      isVerified: false,
      profileImage: null,
      archived: 0,
      subtitle: 'simplebot@riseup.net',
      type: 100,
      isUnpromoted: false,
      isSelfTalk: false,
      contacts: [ [Object] ],
      contactIds: [ 19 ],
      color: '#76c84d',
      summary: undefined,
      freshMessageCounter: 0,
      isGroup: false,
      isDeaddrop: false,
      isDeviceChat: false,
      draft: 'some text',
      selfInGroup: false } }

I guess the scroll to bottom is because this draft is causing DD_EVENT_CHAT_MODIFIED constantly, if draft didn't changed it shouldn't be fired.

  • Platform (linux/mac/windows): GNU/Linux
  • Delta Chat Desktop Version: master
  • Steps to reproduce the problem: write something, before send the text, try to scroll up in the messages list
@nicodh nicodh added the bug Something isn't working label Dec 14, 2019
nicodh added a commit that referenced this issue Dec 14, 2019
Simon-Laux pushed a commit that referenced this issue Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants