Infer attachment type from file mime type and change endpoint accordingly.
This commit is contained in:
parent
6af2d4a1ea
commit
5cfd51fdb6
3 changed files with 9 additions and 5 deletions
1
ui.js
1
ui.js
|
|
@ -147,7 +147,6 @@ export const ui = {
|
|||
},
|
||||
|
||||
generateMessage(msg, activeChatName, userID, chatId) {
|
||||
console.log(msg)
|
||||
const isOutgoing = msg.fromMe || msg.sender === 'me';
|
||||
|
||||
const groupDiv = document.createElement('div');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue