Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.19.1; iOS build fix; audio handling improved; chat fixes; 'env' URL parameter; and more #20

Merged
merged 26 commits into from
Oct 13, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1246c81
Adapted ASR to iOS 12.4 + Swift 5
fq-selbach Sep 9, 2019
1458803
Merge pull request #19 from fq-selbach/patch-1
fquirin Sep 9, 2019
41ad363
v0.19.1; fixed issue with localization;
fquirin Sep 13, 2019
b4f5332
Updated cordova platform for iOS to 5.0.1
fquirin Sep 13, 2019
7964be1
experimenting with audio-recorder to fix iOS 12.4 build
fquirin Sep 13, 2019
09a9f61
Update config.xml
Sep 13, 2019
f023e1e
improved audio recorder and fixed dynamic downsampling
fquirin Sep 14, 2019
0771343
fixed a bug in audio recorder
fquirin Sep 14, 2019
3a95dd5
added 'env' URL parameter to set 'environment' value
fquirin Sep 27, 2019
8b02688
added 'displayOptions' to 'UI.showCustomChatMessage'
fquirin Oct 4, 2019
7ffccb3
fixed bugs with channel-history, e.g. blocked scrolling and missing d…
fquirin Oct 4, 2019
da8f8c2
show check-channels indicator in AO mode as well (colored bell)
fquirin Oct 4, 2019
f4a331d
prevent own messages to show up as 'new' in channel history
fquirin Oct 4, 2019
77385f1
added support for "blocked login" (too many failed attempts)
fquirin Oct 5, 2019
6dbef8d
prevent multiple queued follow-up messages of same type
fquirin Oct 7, 2019
501f11f
prevent channel names that look like IDs and adjust 'getActiveChannel…
fquirin Oct 7, 2019
d71f045
fixed custom-buttons in group chat and made sure cmds are sent to ass…
fquirin Oct 8, 2019
97e2acc
fixed a bug in YouTube fadeOut/In handling; improved code;
fquirin Oct 8, 2019
e40e5d9
dont scroll chat when hidden message is inserted;
fquirin Oct 8, 2019
39b4f39
enable YouTube controls in passive mode when cmd was "search" not "play"
fquirin Oct 8, 2019
3a50c00
improved wake-word and audio-events handling; new ww option;
fquirin Oct 10, 2019
bebcf66
added vad.js; added active-element change event;
fquirin Oct 10, 2019
c3d0fff
improved audio-event tracking and audio resume;
fquirin Oct 11, 2019
e3b9c11
tweaked 'hey sepia' is-active indicator in main window
fquirin Oct 11, 2019
3d755a1
fixed a bug in wake-word settings page and error handling
fquirin Oct 11, 2019
35894b5
updated jquery to v3.4.1
fquirin Oct 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prevent channel names that look like IDs and adjust 'getActiveChannel…
…UsersByIdOrName'
  • Loading branch information
fquirin committed Oct 7, 2019
commit 501f11fee1a6fbb585959cd6ef20a04a03b5ae56
13 changes: 13 additions & 0 deletions www/scripts/sepiaFW.account.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ function sepiaFW_build_account(){
}

//----------------------

//get general ID prefix
Account.getIdPrefix = function(){
if (userId){
return userId.split(/\d/,2)[0];
}else{
return undefined;
}
}
//does the given string look like an ID
Account.stringLooksLikeAnID = function(str){
return !!str.match(new RegExp("^" + Account.getIdPrefix().toLowerCase() + "\\d+$"));
}

//get user id
Account.getUserId = function(){
Expand Down
4 changes: 4 additions & 0 deletions www/scripts/sepiaFW.ui.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,10 @@ function sepiaFW_build_ui_build(){
userList.forEach(function (user) {
var entryClass = "";
var name = user.name; //TODO: distinguish identical names
//prevent names that are like IDs
if (SepiaFW.account.stringLooksLikeAnID(name)){
name = "ID:" + name;
}
if ($.inArray(user.id + "_" + user.deviceId, avoidDoubles) == -1){
if (user.id === userId && user.deviceId === deviceId){
entryClass = "me";
Expand Down
6 changes: 4 additions & 2 deletions www/scripts/sepiaFW.webSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ function sepiaFW_build_webSocket_client(){
receiver = recUid; //we should set receiver in any case to prevent a public message
}
res.shift();
text = res.join(" ");
text = res.join(" ").trim();

//locked receiver overwrite
}else if (activeChatPartner && !hasSpecialCommand){
Expand Down Expand Up @@ -1551,10 +1551,12 @@ function sepiaFW_build_webSocket_client(){
}

Client.getActiveChannelUsersByIdOrName = function(nameOrId){
nameOrId = nameOrId.toLowerCase();
var id = SepiaFW.account.stringLooksLikeAnID(nameOrId)? nameOrId : "";
var receivers = [];
if (nameOrId){
$.each(userList, function(index, u){
if (nameOrId.toLowerCase() === u.name.toLowerCase() || nameOrId.toLowerCase() === u.id.toLowerCase()){
if ((id && id === u.id.toLowerCase()) || nameOrId === u.name.toLowerCase()){
receivers.push(u);
}
});
Expand Down