Skip to content

Commit

Permalink
fix chathistory 005 token name (kiwiirc#1720)
Browse files Browse the repository at this point in the history
This is a bug introduced in kiwiirc#1244 ;
Kiwi was modified to use a draft prefix for both the capability name
and the 005 token, but only the capability name was modified on the spec side.
Since the latest Ergo release now publishes the correct token name, use that
name unconditionally.
  • Loading branch information
slingamn authored and CoryChaplin committed Sep 3, 2023
1 parent 7ac9c3d commit 0584dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ChathistoryMiddleware.js
Expand Up @@ -50,7 +50,7 @@ function addFunctionsToClient(client) {
},
};

history.isSupported = () => !!client.network.supports('draft/chathistory');
history.isSupported = () => !!client.network.supports('chathistory');

history.before = (target, dateOrTime) => new Promise((resolve) => {
if (!history.isSupported()) {
Expand Down

0 comments on commit 0584dd4

Please sign in to comment.