diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue
index 1934164bb24..ded7ace0276 100644
--- a/src/components/LeftSidebar/LeftSidebar.vue
+++ b/src/components/LeftSidebar/LeftSidebar.vue
@@ -225,7 +225,7 @@
:name="item.label"
@click="createAndJoinConversation(item)">
-
+
{{ t('spreed', 'New private conversation') }}
@@ -268,6 +268,23 @@
+
+
+
+
+
+
+
+
+
+ {{ t('spreed', 'New group conversation') }}
+
+
+
@@ -328,6 +345,7 @@ import ConversationsListVirtual from './ConversationsList/ConversationsListVirtu
import InvitationHandler from './InvitationHandler.vue'
import OpenConversationsList from './OpenConversationsList/OpenConversationsList.vue'
import SearchBox from './SearchBox/SearchBox.vue'
+import AvatarWrapper from '../AvatarWrapper/AvatarWrapper.vue'
import ConversationIcon from '../ConversationIcon.vue'
import Hint from '../Hint.vue'
import NewConversationDialog from '../NewConversationDialog/NewConversationDialog.vue'
@@ -360,6 +378,7 @@ export default {
name: 'LeftSidebar',
components: {
+ AvatarWrapper,
CallPhoneDialog,
InvitationHandler,
NcAppNavigation,
@@ -424,6 +443,7 @@ export default {
searchResultsUsers: [],
searchResultsGroups: [],
searchResultsCircles: [],
+ searchResultsFederated: [],
searchResultsListedConversations: [],
contactsLoading: false,
listedConversationsLoading: false,
@@ -714,6 +734,10 @@ export default {
})
this.searchResultsGroups = this.searchResults.filter((match) => match.source === ATTENDEE.ACTOR_TYPE.GROUPS)
this.searchResultsCircles = this.searchResults.filter((match) => match.source === ATTENDEE.ACTOR_TYPE.CIRCLES)
+ this.searchResultsFederated = this.searchResults.filter((match) => match.source === ATTENDEE.ACTOR_TYPE.REMOTES)
+ .map((item) => {
+ return { ...item, source: ATTENDEE.ACTOR_TYPE.FEDERATED_USERS }
+ })
this.contactsLoading = false
} catch (exception) {
if (CancelableRequest.isCancel(exception)) {
@@ -971,11 +995,15 @@ export default {
},
iconData(item) {
- if (item.source === ATTENDEE.ACTOR_TYPE.USERS) {
+ if (item.source === ATTENDEE.ACTOR_TYPE.USERS
+ || item.source === ATTENDEE.ACTOR_TYPE.FEDERATED_USERS) {
return {
- type: CONVERSATION.TYPE.ONE_TO_ONE,
- displayName: item.label,
- name: item.id,
+ id: item.id,
+ name: item.label,
+ source: item.source,
+ disableMenu: true,
+ token: 'new',
+ showUserStatus: true,
}
}
return {