Skip to content
Commits on Source (2)
...@@ -100,8 +100,6 @@ export class MessengerConversation { ...@@ -100,8 +100,6 @@ export class MessengerConversation {
opts = (<any>Object).assign({ opts = (<any>Object).assign({
limit: 12, limit: 12,
offset: '',
finish: ''
}, opts); }, opts);
let scrollView = opts.container; let scrollView = opts.container;
...@@ -169,7 +167,7 @@ export class MessengerConversation { ...@@ -169,7 +167,7 @@ export class MessengerConversation {
fromSelf = true; fromSelf = true;
} }
this.load({ finish: message.guid }); this.load({ limit: 1, finish: message.guid });
if (!fromSelf) { if (!fromSelf) {
this.invalid = false; this.invalid = false;
...@@ -231,7 +229,7 @@ export class MessengerConversation { ...@@ -231,7 +229,7 @@ export class MessengerConversation {
send(e) { send(e) {
e.preventDefault(); e.preventDefault();
if (this.blocked || !this.message if (this.blocked || !this.message
|| this.message.split(/\r\n|\r|\n/).length >= 10) { //not more than 10 return characters. || this.message.split(/\r\n|\r|\n/).length >= 10) { //not more than 10 return characters.
return; return;
} }
......