Hi there,
I plugged this into my fairly vanilla debian bullseye roundcube; no other plugins. I can add rows to the Message Highlights table, but nothing changes in the message list display.
I tried adding console.log(message) to mh_insert_row() in the .js file. I can see dozens of rows in the browser console, but none have the .flags field that the js is expecting:
// check if our color info is present
if(message.flags && message.flags.plugin_mh_color) {
It looks like the php is trying to populate that field inside mh_highlight(). I tried shoving my own field in unconditionally:
$message->list_flags['extra_flags']['plugin_mh_jonh'] = 'xxx-jonh';
...and that doesn't show up in the browser JS console, either.
So now I'm suspecting that the path from PHP 'extra_flags' to JS .flags has changed somewhere along the line, which makes me wonder whether I'm trying to debug something that has simply fallen behind the current roundcube hooks?
Thanks much!
Hi there,
I plugged this into my fairly vanilla debian bullseye roundcube; no other plugins. I can add rows to the Message Highlights table, but nothing changes in the message list display.
I tried adding console.log(message) to mh_insert_row() in the .js file. I can see dozens of rows in the browser console, but none have the .flags field that the js is expecting:
It looks like the php is trying to populate that field inside mh_highlight(). I tried shoving my own field in unconditionally:
...and that doesn't show up in the browser JS console, either.
So now I'm suspecting that the path from PHP 'extra_flags' to JS .flags has changed somewhere along the line, which makes me wonder whether I'm trying to debug something that has simply fallen behind the current roundcube hooks?
Thanks much!