Skip to content

Function: nextActiveThreadTab()

nextActiveThreadTab(openIds, id): string | undefined

Which tab to activate after closing id: the one to its right, else its left neighbour, else undefined when it was the only tab open (the caller then starts a fresh conversation rather than leaving nothing selected).

string[]

string

string | undefined