case ActionType.SessionChatUpdated: {
const idx = list.findIndex(c => c.resource === action.chat);
if (idx < 0) {
return state;
}
const updated = list.slice();
updated[idx] = { ...list[idx], ...changes };
return { ...state, chats: updated };
}
case ActionType.SessionDefaultChatChanged: