Repository navigation
Commit 2ee8147
authored
refactor: share reaction item decoding (#1700)
Share one private reaction-item response type and conversion method
between `reactions.get` and `reactions.list`. Remove the duplicated JSON
structure and message/file/comment conversion switch, reducing the code
by 25 lines.
Preserve returned items, reaction details, list ordering, and
pagination. No public API changes.1 parent b80941d commit 2ee8147
1 file changed
Lines changed: 8 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 100 | + | |
111 | 101 | | |
112 | 102 | | |
113 | 103 | | |
114 | 104 | | |
115 | 105 | | |
116 | 106 | | |
117 | 107 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 108 | + | |
134 | 109 | | |
135 | 110 | | |
136 | 111 | | |
| |||
0 commit comments