Refactor pop-out chat #1551
Labels
bug
Something isn't working
chore
Maintenance or other non-bug, non-feature
high priority
Should be done fairly soon
Use a data representation that makes it impossible to have log be None and still think that we have docked chat.
IOW, fix the pop-up chat bug (#1550) right, rather than a quick fix. At first glance, this looks trivial to solve correctly in that we have two different fields in
Table
that are intrinsically tied together:log: Option<ScrollableLog>
andundocked_chat: Option<chat::Parent>
. AFAICT, there should always either be alog
or anundocked_chat
, so just slapping them into an Either fixes it for good.My guess is that if I use an Either and then fix the compilation errors that as I'm doing so I'll have an aha moment and understand just how they could have gotten out of sync. OTOH, there's also a chance that I'll run into some spaghetti code that will take a while to navigate.
So, for now I'm labeling this
high priority
andeasy
, but I'm not going to take a look at it until I'm caught up on email.The text was updated successfully, but these errors were encountered: