forked from geeeeeeeeek/electronic-wechat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Another Solution to the Emoji Problem: Hack transformResponse
- Hack `angular.bootstrap` to configure `$httpProvider.defaults.transformResponse`. - Lock emoji messages as image messages.
- Loading branch information
Showing
3 changed files
with
37 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ injectBundle.loginCSS = ` | |
} | ||
`; | ||
|
||
module.exports = injectBundle; | ||
module.exports = injectBundle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
477830d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像应该先
msg.MsgType === constants.MSGTYPE_EMOTICON
判断一下再正则, 不过直接正则也影响不大~UPD: 还是在 7d25ecc 加了这个预判.
477830d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍