Index: trunk/extensions/LiquidThreads/classes/LqtThread.php |
— | — | @@ -200,7 +200,12 @@ |
201 | 201 | $this->type = Threads::TYPE_DELETED; |
202 | 202 | $this->revisionNumber += 1; |
203 | 203 | $this->commitRevision( Threads::CHANGE_DELETED, $this, $reason ); |
204 | | - /* TODO: mark thread as read by all users, or we get blank thingies in New Messages. */ |
| 204 | + /* Mark thread as read by all users, or we get blank thingies in New Messages. */ |
| 205 | + |
| 206 | + $dbw = wfGetDB( DB_MASTER ); |
| 207 | + |
| 208 | + $dbw->delete( 'user_message_state', array( 'ums_thread' => $this->id() ), |
| 209 | + __METHOD__ ); |
205 | 210 | } |
206 | 211 | |
207 | 212 | function undelete( $reason ) { |