diff --git a/src/addon/blog/components/entries/entries.ts b/src/addon/blog/components/entries/entries.ts index 29b225c09..8853d8842 100644 --- a/src/addon/blog/components/entries/entries.ts +++ b/src/addon/blog/components/entries/entries.ts @@ -104,7 +104,7 @@ export class AddonBlogEntriesComponent implements OnInit { this.contextInstanceId = this.courseId; } else { this.contextLevel = 'system'; - this.contextInstanceId = this.siteHomeId; + this.contextInstanceId = 0; } this.commentsEnabled = !this.commentsProvider.areCommentsDisabledInSite(); diff --git a/src/addon/messages/components/discussions/addon-messages-discussions.html b/src/addon/messages/components/discussions/addon-messages-discussions.html index 8d21aaba8..0094d0dc5 100644 --- a/src/addon/messages/components/discussions/addon-messages-discussions.html +++ b/src/addon/messages/components/discussions/addon-messages-discussions.html @@ -15,7 +15,7 @@

{{ result.fullname }}

-

+

@@ -27,7 +27,7 @@ {{discussion.message.timecreated / 1000 | coreDateDayOrTime}} -

+

diff --git a/src/addon/messages/components/discussions/discussions.ts b/src/addon/messages/components/discussions/discussions.ts index 0a37c5ec3..629446b1a 100644 --- a/src/addon/messages/components/discussions/discussions.ts +++ b/src/addon/messages/components/discussions/discussions.ts @@ -50,7 +50,6 @@ export class AddonMessagesDiscussionsComponent implements OnDestroy { loading: '', text: '' }; - siteHomeId: number; constructor(private eventsProvider: CoreEventsProvider, sitesProvider: CoreSitesProvider, translate: TranslateService, private messagesProvider: AddonMessagesProvider, private domUtils: CoreDomUtilsProvider, navParams: NavParams, @@ -60,7 +59,6 @@ export class AddonMessagesDiscussionsComponent implements OnDestroy { this.search.loading = translate.instant('core.searching'); this.loadingMessages = translate.instant('core.loading'); this.siteId = sitesProvider.getCurrentSiteId(); - this.siteHomeId = sitesProvider.getCurrentSiteHomeId(); // Update discussions when new message is received. this.newMessagesObserver = eventsProvider.on(AddonMessagesProvider.NEW_MESSAGE_EVENT, (data) => { diff --git a/src/addon/messages/pages/conversation-info/conversation-info.html b/src/addon/messages/pages/conversation-info/conversation-info.html index 66dd220f2..b5885ddd1 100644 --- a/src/addon/messages/pages/conversation-info/conversation-info.html +++ b/src/addon/messages/pages/conversation-info/conversation-info.html @@ -18,8 +18,8 @@
-

-

+

+

{{ 'addon.messages.numparticipants' | translate:{$a: conversation.membercount} }}

diff --git a/src/addon/messages/pages/conversation-info/conversation-info.ts b/src/addon/messages/pages/conversation-info/conversation-info.ts index dcd2597dd..5dfeb450d 100644 --- a/src/addon/messages/pages/conversation-info/conversation-info.ts +++ b/src/addon/messages/pages/conversation-info/conversation-info.ts @@ -35,14 +35,12 @@ export class AddonMessagesConversationInfoPage implements OnInit { members: AddonMessagesConversationMember[] = []; canLoadMore = false; loadMoreError = false; - siteHomeId: number; protected conversationId: number; constructor(private messagesProvider: AddonMessagesProvider, private domUtils: CoreDomUtilsProvider, navParams: NavParams, protected viewCtrl: ViewController, sitesProvider: CoreSitesProvider) { this.conversationId = navParams.get('conversationId'); - this.siteHomeId = sitesProvider.getCurrentSiteHomeId(); } /** diff --git a/src/addon/messages/pages/discussion/discussion.html b/src/addon/messages/pages/discussion/discussion.html index 5c7ea16ad..a869dad74 100644 --- a/src/addon/messages/pages/discussion/discussion.html +++ b/src/addon/messages/pages/discussion/discussion.html @@ -3,7 +3,7 @@ - + @@ -58,7 +58,7 @@

- +