From ca0e1f995cb52c46392e29bf4193c6d750160157 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 3 Dec 2019 02:34:45 -0800 Subject: [PATCH] handle public group updates differently --- js/background.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/background.js b/js/background.js index 13ef99a9b..6f2404d3b 100644 --- a/js/background.js +++ b/js/background.js @@ -741,6 +741,20 @@ 'group' ); + if (convo.isPublic()) { + const API = await convo.getPublicSendData(); + if (await API.setChannelName(groupName)) { + // queue update from server + // and let that set the conversation + API.pollForChannelOnce(); + // or we could just directly call + // convo.setGroupName(groupName); + // but gut is saying let the server be the definitive storage of the state + // and trickle down from there + } + return; + } + const avatar = ''; const options = {};