mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
fix(thread-list): AccountId resolution for items outside loaded range
This commit is contained in:
parent
ec553b0c3d
commit
c8d8bd0aee
1 changed files with 2 additions and 3 deletions
|
@ -107,11 +107,10 @@ class ThreadList extends React.Component
|
||||||
dataSource = ThreadListStore.dataSource()
|
dataSource = ThreadListStore.dataSource()
|
||||||
if itemThreadId in dataSource.selection.ids()
|
if itemThreadId in dataSource.selection.ids()
|
||||||
dragThreadIds = dataSource.selection.ids()
|
dragThreadIds = dataSource.selection.ids()
|
||||||
|
dragAccountIds = _.pluck(dataSource.selection.items(), 'accountId')
|
||||||
else
|
else
|
||||||
dragThreadIds = [itemThreadId]
|
dragThreadIds = [itemThreadId]
|
||||||
|
dragAccountIds = [dataSource.getById(itemThreadId).accountId]
|
||||||
dragAccountIds = dragThreadIds.map (threadId) -> dataSource.getById(threadId).accountId
|
|
||||||
dragAccountIds = _.uniq(dragAccountIds)
|
|
||||||
|
|
||||||
dragData = {
|
dragData = {
|
||||||
accountIds: dragAccountIds,
|
accountIds: dragAccountIds,
|
||||||
|
|
Loading…
Reference in a new issue