// We set back, when the user finishes editing, the correct topic, which wipes out the existance of the span before. We don't need to undo the dbl click action.
//Test both displayName and formattedUID for nil-ness. If they're both nil, the assertion will trip.
if(!senderDisplay){
senderDisplay=displayName;
if(!senderDisplay){
senderDisplay=formattedUID;
if(!senderDisplay){
AILog(@"XXX we don't have a sender for %@ (%@)",content,[contentmessage]);
NSLog(@"Enormous error: we don't have a sender for %@ (%@)",content,[contentmessage]);
// This shouldn't happen.
senderDisplay=@"(unknown)";
}
}
}
}else{
senderDisplay=displayName;
}
if([(AIContentMessage*)contentisAutoreply]){
senderDisplay=[NSStringstringWithFormat:@"%@ %@",senderDisplay,AILocalizedString(@"(Autoreply)","Short word inserted after the sender's name when displaying a message which was an autoresponse")];