Add move, link, and unlink operations

This commit is contained in:
Mikayla 2023-09-09 13:24:04 -07:00
parent 77cdbdb12a
commit 439f627d9a
No known key found for this signature in database
3 changed files with 275 additions and 69 deletions

View file

@ -146,7 +146,7 @@ impl ChannelStore {
})
}
pub fn channel_at_index(&self, ix: usize) -> Option<(&Arc<Channel>, &Arc<[ChannelId]>)> {
pub fn channel_at_index(&self, ix: usize) -> Option<(&Arc<Channel>, &ChannelPath)> {
let path = self.channel_index.get(ix)?;
let id = path.last().unwrap();
let channel = self.channel_for_id(*id).unwrap();