update
This commit is contained in:
parent
57f5bffac6
commit
94d72e753e
@ -83,24 +83,10 @@ export default {
|
||||
components: { SvgIcon },
|
||||
name: 'MessageHub',
|
||||
props: {},
|
||||
mounted() {
|
||||
// this.fetchConversations()
|
||||
},
|
||||
// watch: {
|
||||
// conversations: {
|
||||
// handler: function (val) {
|
||||
// if (val && val.length > 0) {
|
||||
// this.current_thread = val[0]
|
||||
// this.clearUnreadMessageBy(val[0])
|
||||
// }
|
||||
// },
|
||||
// deep: false
|
||||
// }
|
||||
// },
|
||||
mounted() {},
|
||||
data() {
|
||||
return {
|
||||
userIdentityNote: this.mnx_getUserIdentity(),
|
||||
// conversations: [],
|
||||
selConversation: null,
|
||||
messages: [],
|
||||
writtenMessage: null
|
||||
@ -126,19 +112,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// fetchConversations() {
|
||||
// MessageHubApi.fetchConversations(new Date('01 Jan 1970 00:00:00 GMT').toISOString())
|
||||
// .then((response) => {
|
||||
// const conversations = response.data.conversations || []
|
||||
// this.conversations = conversations
|
||||
// if (conversations.length > 0) {
|
||||
// this.selectConversation(conversations[0])
|
||||
// }
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// this.mnx_backendErrorHandler(error)
|
||||
// })
|
||||
// },
|
||||
fetchMessageForConversation(conversation_id) {
|
||||
const jwt = userUtils.getJwtToken()
|
||||
MessageHubApi.fetchMessages(
|
||||
|
||||
@ -12,10 +12,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
UserProfileApi
|
||||
// userProfileValidator,
|
||||
} from '@/utils/index'
|
||||
export default {
|
||||
name: 'ProposalSubmitted',
|
||||
props: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user