Skip to content

Commit

Permalink
Merge pull request #1244 from slingamn/chathistory_draft_prefix
Browse files Browse the repository at this point in the history
use draft/chathistory instead of chathistory
  • Loading branch information
prawnsalad committed May 22, 2020
2 parents dc7dcd3 + fdaa74b commit 0f3cab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ChathistoryMiddleware.js
Expand Up @@ -9,7 +9,7 @@ import * as Misc from '@/helpers/Misc';
*/
export default function chathistoryMiddleware() {
return function middleware(client, rawEvents, parsedEvents) {
client.requestCap('CHATHISTORY');
client.requestCap('draft/chathistory');
addFunctionsToClient(client);
parsedEvents.use(theMiddleware);
};
Expand Down Expand Up @@ -50,7 +50,7 @@ function addFunctionsToClient(client) {
},
};

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

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

0 comments on commit 0f3cab9

Please sign in to comment.