You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/bridge/MatrixHandler.ts: handle replying to self
When someone sent a message:
<f_[mtrx]> Hello?
And then replied to their own message:
<f_[mtrx]> > <@Funderscore:nova.astraltech.org> Hello?
Hi?
What would be sent on IRC would either be this:
<f_[mtrx]> Hello?
<f_[mtrx]> f_[mtrx]: Hi?
Or:
<f_[mtrx]> Hello?
-- a while later --
<f_[mtrx]> f_[mtrx]: "Hello?" <- Hi?
Both of which are confusing because usually nobody pings themself on
IRC.
This commit treats replies to self differently, and introduces a new
`selfReplyTemplate` config option, so that the reply gets bridged as:
<f_[mtrx]> <f_[mtrx]> Hello?
-- a while later --
<f_[mtrx]> Hi?
Or:
<f_[mtrx]> Hi?
Which is a bit more natural.
Signed-off-by: Ferass El Hafidi <[email protected]>
0 commit comments