[PATCH gamja] Support +channel-context
Export this patch
See: https://github.com/ircv3/ircv3-specifications/pull/498
---
components/app.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/components/app.js b/components/app.js
index 9b650ec..07ad17c 100644
--- a/components/app.js
+++ b/components/app.js
@@ -709,7 +709,12 @@ export default class App extends Component {
if (client.cm(msg.prefix.name) === client.cm(client.serverPrefix.name)) {
target = SERVER_BUFFER;
} else {
- target = msg.prefix.name;
+ let context = msg.tags['+draft/channel-context'];
+ if (context && client.isChannel(context) && State.getBuffer(this.state, { server: serverID, name: context })) {
+ target = context;
+ } else {
+ target = msg.prefix.name;
+ }
}
}
if (msg.command === "NOTICE" && !State.getBuffer(this.state, { server: serverID, name: target })) {
base-commit: 0063a5a3727ee0bfa5612e35b7604424c023c563
--
2.17.1
gamja/patches/.build.yml: SUCCESS in 38s
[Support +channel-context][0] from [delthas][1]
[0]: https://lists.sr.ht/~emersion/public-inbox/patches/31710
[1]: mailto:delthas@dille.cc
✓ #746601 SUCCESS gamja/patches/.build.yml https://builds.sr.ht/~emersion/job/746601