Duplicate  Username Didnt Update

DrYontem

Well-known member

hi,
i found this bug while i was writing add-on

my 3rd user's username was "test"
i changed it to "user3" 5-6 days ago
but, there is no username update in conversation page

regards...
 

Attachments

  • bug.webp
    bug.webp
    8.1 KB · Views: 5
No, it's not duplicated.
It's the "same problem" but on an other place.
xenforo also "caaches" the last username and the username of the first sender of the conversation, so if somebody changes his name, this will also not be changed too.
PHP:
'xf_conversation_master' => array(
'conversation_id'       => array('type' => self::TYPE_UINT,   'autoIncrement' => true),
...
'user_id'               => array('type' => self::TYPE_UINT,   'required' => true),
'username'              => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50),
...
'last_message_username' => array('type' => self::TYPE_STRING, 'default' => '', 'maxLength' => 50),
 
Top Bottom