Fix message sender pastie link

When sending a message, activity was being pushed to the channel before saved. 

As no id was setted yet, if message is to be truncated by the PastiePlugin, the pastie's link, from the message sender's perspective, was broken with an undefined id in it's URL.