Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
js: Convert pm_conversations module to ES6.
Priyank Patelaca77e924549
diff --git a/static/js/pm_conversations.js b/static/js/pm_conversations.jsindex d8dcd5d172e..bc8d0bbef17 100644--- a/static/js/pm_conversations.js+++ b/static/js/pm_conversations.js@@ -1,17 +1,15 @@-"use strict";--const FoldDict = require("./fold_dict").FoldDict;-const people = require("./people");+import {FoldDict} from "./fold_dict";+import * as people from "./people";const partners = new Set();-exports.set_partner = function (user_id) {+export function set_partner(user_id) {partners.add(user_id);-};+}-exports.is_partner = function (user_id) {+export function is_partner(user_id) {return partners.has(user_id);-};+}class RecentPrivateMessages {// This data structure keeps track of the sets of users you've had@@ -77,4 +75,4 @@ class RecentPrivateMessages {}}-exports.recent = new RecentPrivateMessages();+export const recent = new RecentPrivateMessages();