Fixed Own profile - Conversation - Start a Conversation

Marcus

Well-known member
There is a link on your own profile to start a conversation (with yourself). After you click on this link your username is in the list of participants. This gives you an error after you write yourself a message.
 
"You cannot start a conversation with yourself (unless you're crazy)" would probably be a better message than "Please enter at least one valid participant". However, you are not a valid participant in a conversation with yourself, so I'd say it's working as designed.
 
I think the bug is that the link is still present on your own profile, rather than hiding it because you can't start a conversation with yourself. The error handling is as designed however.
 
I think the bug is that the link is still present on your own profile, rather than hiding it because you can't start a conversation with yourself. The error handling is as designed however.
Yeah, I thought about that for a minute after I posted. Would make more sense to remove it completely.
 
Since I'm bored, here's a quick fix ;)

In member_view, change
Code:
<xen:if is="{$canStartConversation}">

to

Code:
<xen:if is="{$canStartConversation} AND {$user.user_id} != {$visitor.user_id}">
 
Top Bottom