diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 62af3f53b..7cba013e7 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -200,7 +200,7 @@ export class ConversationModel extends Backbone.Model { this.triggerUIRefresh = _.throttle(this.triggerUIRefresh, 1000, { trailing: true, }); - this.throttledNotify = _.debounce(this.notify, 500, { maxWait: 1000, trailing: true }); + this.throttledNotify = _.debounce(this.notify, 500, { maxWait: 5000, trailing: true }); //start right away the function is called, and wait 1sec before calling it again const markReadDebounced = _.debounce(this.markReadBouncy, 1000, { leading: true, diff --git a/ts/receiver/hashDuplicateFilter.ts b/ts/receiver/hashDuplicateFilter.ts index f372a770b..b7680cc41 100644 --- a/ts/receiver/hashDuplicateFilter.ts +++ b/ts/receiver/hashDuplicateFilter.ts @@ -4,7 +4,7 @@ import { sha256 } from '../session/crypto'; const recentHashByConvo = new Map>(); -const maxHashToKeepPerConvo = 50; +const maxHashToKeepPerConvo = 10; export function isDuplicateBasedOnHash( dataMessage: SignalService.DataMessage,