When a contact is offline, the Rename context-menu option is not working.
From this 2009 discussion (https://community.igniterealtime.org/thread/40241), I was able to rename the contact by activating the “Group offline users” option, but there was still a dispay issue when I unselected the “Group offline users” option. After a restart of Spark, display is as expected.