DJF3 / Webex-Message-space-archiver

Archive Cisco Webex Teams Space messages to a single HTML file. Highly configurable (download files/images, sort order, max messages or age, avatars, etc)
Other
55 stars 19 forks source link

Final message not shown as threaded #3

Closed ojchase closed 2 years ago

ojchase commented 3 years ago

If the final message in a space is part of a thread, it is not shown in the final HTML as threaded. I confirmed the JSON has the appropriate parentId.

I've debugged this to the point of calculating threaded_message in the main message loop. A "list index out of range" is being thrown and so threaded_message=False. I suspect that behavior is reasonable for either nextitem or previousitem, but not the other.

DJF3 commented 3 years ago

@ojchase Thank you for reporting. I have found the fix. You have to remove 1 line of code that has no function anymore (except for causing this issue). Please remove the line containing: nextitem = float(abc[index+1]) Can you confirm that fixes the problem? Cheers! DJ

ojchase commented 3 years ago

Next time I need to use this I'll be sure to check it out. Thanks!

ojchase commented 2 years ago

yes, this fixes it