• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-nuxt3 / fa17d6ba-ea6d-4e81-946b-268693cbc9d9

13 Aug 2025 08:07PM UTC coverage: 41.6% (+0.4%) from 41.167%
fa17d6ba-ea6d-4e81-946b-268693cbc9d9

push

circleci

chriscant
MT: ChatPane gets chat if not loaded already

1918 of 5875 branches covered (32.65%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

123 existing lines in 7 files now uncovered.

4641 of 9892 relevant lines covered (46.92%)

132.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

9.09
/api/ChatAPI.js
1
import BaseAPI from '@/api/BaseAPI'
2

3
export default class ChatAPI extends BaseAPI {
52✔
4
  fetchMessages(chatid) {
5
    return this.$getv2(`/chat/${chatid}/message`)
×
6
  }
7

8
  fetchMessagesMT(chatid, params) {
9
    return this.$get(`/chat/rooms/${chatid}/messages`, params)
×
10
  }
11

12
  async unseenCountMT() {
13
    const { count } = await this.$get('/chatrooms', {
×
14
      count: true,
15
      chattypes: ['User2Mod', 'Mod2Mod'],
16
    })
17
    return count
×
18
  }
19

20
  async fetchReviewChatsMT(params) {
21
    return await this.$get(`/chatmessages`, params)
×
22
  }
23

24
  async listChatsMT(params) {
25
    return await this.$get('/chat/rooms', params)
×
26
  }
27

28
  async listChats(since, search, keepChat, logError) {
29
    return await this.$getv2(
95✔
30
      '/chat?includeClosed=true',
31
      {
32
        since,
33
        search,
34
        keepChat,
35
      },
36
      logError
37
    )
38
  }
39

40
  fetchChatMT(chatid) {
41
    return this.$get('/chatrooms', {
×
42
      id: chatid,
43
      chattypes: ['User2Mod', 'Mod2Mod'],
44
    })
45
  }
46

47
  fetchChat(chatid, logError) {
UNCOV
48
    return this.$getv2('/chat/' + chatid, {}, logError)
×
49
  }
50

51
  markRead(chatid, lastmsg, allowback) {
UNCOV
52
    return this.$post('/chatrooms', {
×
53
      id: chatid,
54
      lastmsgseen: lastmsg,
55
      allowback,
56
    })
57
  }
58

59
  deleteMessage(messageId) {
UNCOV
60
    return this.$del(`/chatmessages?id=${messageId}`)
×
61
  }
62

63
  openChat(params, logError) {
UNCOV
64
    return this.$put('/chat/rooms', params, logError)
×
65
  }
66

67
  async send(data) {
UNCOV
68
    return await this.$postv2('/chat/' + data.roomid + '/message', data)
×
69
  }
70

71
  async sendMT(data) {
UNCOV
72
    return await this.$post('/chatmessages', data)
×
73
  }
74

75
  nudge(chatid) {
UNCOV
76
    return this.$post('/chatrooms', {
×
77
      id: chatid,
78
      action: 'Nudge',
79
    })
80
  }
81

82
  hideChat(chatid) {
UNCOV
83
    return this.$post('/chatrooms', { id: chatid, status: 'Closed' })
×
84
  }
85

86
  blockChat(chatid) {
UNCOV
87
    return this.$post('/chatrooms', { id: chatid, status: 'Blocked' })
×
88
  }
89

90
  unHideChat(chatid) {
UNCOV
91
    return this.$post('/chatrooms', { id: chatid, status: 'Online' })
×
92
  }
93

94
  rsvp(id, chatid, value) {
UNCOV
95
    return this.$patch('/chatmessages', {
×
96
      roomid: chatid,
97
      id,
98
      replyexpected: value,
99
    })
100
  }
101

102
  typing(chatid) {
UNCOV
103
    return this.$post('/chatrooms', { id: chatid, action: 'Typing' })
×
104
  }
105

106
  referToSupport(chatid) {
UNCOV
107
    return this.$post('/chatrooms', { id: chatid, action: 'ReferToSupport' })
×
108
  }
109
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc