|
166 | 166 | WidgetWall.showHidePrivateChat(); |
167 | 167 | WidgetWall.followLeaveGroupPermission(); |
168 | 168 | WidgetWall.showHideCommentBox(); |
| 169 | + WidgetWall.initFabButtons(); |
169 | 170 | let dldActionItem = new URLSearchParams(window.location.search).get('actionItem'); |
170 | 171 | if (dldActionItem) |
171 | 172 | WidgetWall.SocialItems.appSettings.actionItem = JSON.parse(dldActionItem); |
|
616 | 617 | WidgetWall.stopSkeleton(); |
617 | 618 | return console.error("Getting user failed.", err); |
618 | 619 | } |
| 620 | + WidgetWall.setSettings(result); |
619 | 621 | WidgetWall.SocialItems.checkBlockedUsers(); |
620 | 622 | WidgetWall.getPosts(()=>{ |
621 | 623 | if (user) { |
|
820 | 822 | } |
821 | 823 |
|
822 | 824 | WidgetWall.navigateToPrivateChat = function (privateChatData) { |
823 | | - |
824 | 825 | WidgetWall.SocialItems.isPrivateChat = true; |
825 | 826 | WidgetWall.SocialItems.wid = privateChatData.wid; |
826 | 827 | WidgetWall.SocialItems.showMorePosts = false; |
827 | 828 | WidgetWall.SocialItems.pageSize = 5; |
828 | 829 | WidgetWall.SocialItems.page = 0; |
| 830 | + WidgetWall.allowCreateThread = true; |
| 831 | + WidgetWall.initFabButtons(); |
829 | 832 | WidgetWall.SocialItems.setPrivateChatTitle(privateChatData.wid).then(() => { |
830 | 833 | if (WidgetWall.isFromDeepLink) { |
831 | 834 | buildfire.appearance.titlebar.setText({ text: WidgetWall.SocialItems.pluginTitle}, (err) => { |
|
858 | 861 | if (result) { |
859 | 862 | WidgetWall.SocialItems.appSettings = result.data && result.data.appSettings ? result.data.appSettings : {}; |
860 | 863 | WidgetWall.setSettings(result); |
861 | | - WidgetWall.initFabButtons(); |
862 | 864 |
|
863 | 865 | Buildfire.datastore.onUpdate(function (response) { |
864 | 866 | if (response.tag === "Social") { |
865 | 867 | WidgetWall.setSettings(response); |
866 | | - WidgetWall.initFabButtons() |
867 | 868 | setTimeout(function () { |
868 | 869 | if (!response.data.appSettings.disableFollowLeaveGroup) { |
869 | 870 | let wallSVG = document.getElementById("WidgetWallSvg") |
|
0 commit comments