Procházet zdrojové kódy

Fix largeSingleEmoji setting (#610)

It wasn't applied properly due to typos.

TypeScript classes would have prevented that :) Unfortunately they
don't work well as AngularJS directive controllers :(
Danilo Bargen před 6 roky
rodič
revize
9b8f46a118
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/directives/message_text.ts

+ 2 - 2
src/directives/message_text.ts

@@ -74,7 +74,7 @@ export default [
                  * Apply filters to text.
                  */
                 function processText(text: string, largeSingleEmoji: boolean, multiLine: boolean, linkifyText: boolean): string {
-                    const nonLinkified = mentionify(enlargeSingleEmoji(emojify(markify(escapeHtml(text))), enlargeSingleEmoji));
+                    const nonLinkified = mentionify(enlargeSingleEmoji(emojify(markify(escapeHtml(text))), largeSingleEmoji));
                     const maybeLinkified = linkifyText ? linkify(nonLinkified) : nonLinkified;
                     return nlToBr(maybeLinkified, multiLine);
                 }
@@ -97,7 +97,7 @@ export default [
                     );
                 };
 
-                this.enlargeSingleEmoji = webClientService.appConfig.largeSingleEmoji;
+                this.largeSingleEmoji = webClientService.appConfig.largeSingleEmoji;
 
                 this.$onInit = function() {
                     // Process initial text