Skip to content

Commit

Permalink
feat(chat): resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
maljuburi committed Jul 8, 2022
1 parent bffd700 commit b2437af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions components/views/chat/chatbar/Chatbar.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template src="./Chatbar.html"></template>
<script lang="ts">
import Vue from 'vue'
import Vue, { PropType } from 'vue'
import { mapState, mapGetters } from 'vuex'
import { throttle } from 'lodash'
import { TerminalIcon } from 'satellite-lucide-icons'
Expand All @@ -23,9 +23,15 @@ export default Vue.extend({
components: {
TerminalIcon,
},
props: {
recipient: {
type: Object as PropType<Friend | Group>,
default: () => {},
},
},
computed: {
...mapGetters({
recipient: 'conversation/recipient',
// recipient: 'conversation/recipient',
getFiles: 'chat/getFiles',
isGroup: 'conversation/isGroup',
}),
Expand Down
2 changes: 1 addition & 1 deletion layouts/chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</UiChatScroll>-->
<Nuxt />
<WalletMini v-if="ui.modals.walletMini" />
<Chatbar ref="chatbar" />
<Chatbar v-if="recipient" ref="chatbar" :recipient="recipient" />
</DroppableWrapper>
</swiper-slide>
<swiper-slide v-if="$data.asidebar" class="aside-container">
Expand Down
5 changes: 3 additions & 2 deletions libraries/Iridium/chat/ChatManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import {
IridiumPeerMessage,
IridiumPubsubEvent,
Iridium,
} from '@satellite-im/iridium/dist/index.browser'
Emitter,
EmitterCallback,
} from '@satellite-im/iridium'
// Iridium import above has static function called hash, use to hash this user id and the name of the chat

import { EmitterCallback, Emitter } from '@satellite-im/iridium/src/emitter'
import {
Conversation,
ConversationMessage,
Expand Down

0 comments on commit b2437af

Please sign in to comment.