Replace /me special handling with a flag
Categories
(Chat Core :: General, task)
Tracking
(thunderbird_esr91 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | wontfix |
People
(Reporter: clokep, Assigned: clokep)
Details
Attachments
(1 file, 1 obsolete file)
We do a lot of special handling for messages that start with /me
(like prepending it for protocols that have a different way of describing an action message). It is more ideal to just use a flag. This should clean-up some of the logic in the core and make some of the protocols less hacky.
I've attached a work in progress patch for this. The parent changeset is quite old so it has probably bitrotted unfortunately.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
I think it would also make sense to have the /me
commands go through sendMsg
so we can unify the OutgoingMessage
story. To do so I'd suggest adding a second param to sendMsg
that is true if the message that is being sent is an action
.
Comment 3•3 years ago
|
||
(In reply to Martin Giger [:freaktechnik] from comment #2)
I think it would also make sense to have the
/me
commands go throughsendMsg
so we can unify theOutgoingMessage
story. To do so I'd suggest adding a second param tosendMsg
that is true if the message that is being sent is anaction
.
I actually ended up doing that in the patch for bug 1747090.
Assignee | ||
Comment 4•3 years ago
|
||
I have a patch for this which builds on bug 1760176.
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/db05c48a9ab2
Replace /me special handling with a flag. r=freaktechnik
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Bug 1735353 also fixed a couple of issues with this when loading messages from logs.
Description
•