Skip to content

Commit 2150ef4

Browse files
author
Ruslan Farkhutdinov
committed
Chat: File Attachments demo - remove editing and deleting
1 parent 50a8aa5 commit 2150ef4

File tree

1 file changed

+0
-18
lines changed
  • apps/demos/Demos/Chat/FileAttachments/jQuery

1 file changed

+0
-18
lines changed

apps/demos/Demos/Chat/FileAttachments/jQuery/index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,6 @@ $(() => {
4646
},
4747
}]);
4848
},
49-
onMessageDeleted(e) {
50-
const { message } = e;
51-
52-
dataSource.store().push([{
53-
type: 'update',
54-
key: message.id,
55-
data: { isDeleted: true },
56-
}]);
57-
},
58-
onMessageUpdated(e) {
59-
const { message, text } = e;
60-
61-
dataSource.store().push([{
62-
type: 'update',
63-
key: message.id,
64-
data: { text, isEdited: true },
65-
}]);
66-
},
6749
onAttachmentDownloadClick(e) {
6850
const { attachment } = e;
6951
if (!attachment?.url) return;

0 commit comments

Comments
 (0)