]> git.cworth.org Git - turbot/commitdiff
Don't re-set channel and sheet name or channel topic to the same value as before
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 07:04:55 +0000 (23:04 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 07:04:55 +0000 (23:04 -0800)
The puzzle_update_channel_and_sheet function is modified here to
accept an old_puzzle argument in addition to the puzzle argument. By
using this it can decide whether there's any change in the sheet or
channel data before setting it.

This optimization avoids Slack reporting things like:

    Turbot renamed the channel from "hunt-puzzle" to "hunt-puzzle"

Which is obviously just noise.


No differences found